Skip to content

Commit

Permalink
Removing sleeps
Browse files Browse the repository at this point in the history
  • Loading branch information
Trey Roessig committed Dec 23, 2020
1 parent bbff463 commit f0321f2
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions test/threads_exec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ end
put!(c,1)
end
@async begin
sleep(0.01)
#sleep(0.01)
r = take!(c)
end
end
Expand All @@ -907,7 +907,7 @@ end
c = Channel(0)
@sync begin
@async begin
sleep(0.01)
#sleep(0.01)
r = take!(c)
end
@async begin
Expand All @@ -927,7 +927,7 @@ end
put!(c,1)
end
@async begin
sleep(0.01)
#sleep(0.01)
undefined()
r = take!(c)
end
Expand All @@ -942,7 +942,7 @@ end
c = Channel(0)
f = () -> @sync begin
@async begin
sleep(0.01)
#sleep(0.01)
undefined()
r = take!(c)
end
Expand All @@ -964,7 +964,7 @@ end
put!(c,1)
end
Threads.@spawn begin
sleep(0.01)
#sleep(0.01)
r = take!(c)
end
end
Expand All @@ -977,7 +977,7 @@ end
c = Channel(0)
@sync begin
Threads.@spawn begin
sleep(0.01)
#sleep(0.01)
r = take!(c)
end
Threads.@spawn begin
Expand All @@ -996,7 +996,7 @@ end
put!(c,1)
end
Threads.@spawn begin
sleep(0.01)
#sleep(0.01)
undefined()
r = take!(c)
end
Expand All @@ -1010,7 +1010,7 @@ end
c = Channel(0)
f = () ->@sync begin
Threads.@spawn begin
sleep(0.01)
#sleep(0.01)
undefined()
r = take!(c)
end
Expand All @@ -1031,7 +1031,7 @@ end
put!(c,1)
end
Threads.@spawn begin
sleep(0.01)
#sleep(0.01)
r = take!(c)
end
end
Expand All @@ -1044,7 +1044,7 @@ end
c = Channel(0)
@sync begin
@async begin
sleep(0.01)
#sleep(0.01)
r = take!(c)
end
Threads.@spawn begin
Expand All @@ -1063,7 +1063,7 @@ end
put!(c,1)
end
Threads.@spawn begin
sleep(0.01)
#sleep(0.01)
undefined()
r = take!(c)
end
Expand All @@ -1077,7 +1077,7 @@ end
c = Channel(0)
f = () ->@sync begin
@async begin
sleep(0.01)
#sleep(0.01)
undefined()
r = take!(c)
end
Expand All @@ -1098,7 +1098,7 @@ end
put!(c,1)
end
@async begin
sleep(0.01)
#sleep(0.01)
r = take!(c)
end
end
Expand All @@ -1111,7 +1111,7 @@ end
c = Channel(0)
@sync begin
Threads.@spawn begin
sleep(0.01)
#sleep(0.01)
r = take!(c)
end
@async begin
Expand All @@ -1130,7 +1130,7 @@ end
put!(c,1)
end
@async begin
sleep(0.01)
#sleep(0.01)
undefined()
r = take!(c)
end
Expand All @@ -1144,7 +1144,7 @@ end
c = Channel(0)
f = () ->@sync begin
Threads.@spawn begin
sleep(0.01)
#sleep(0.01)
undefined()
r = take!(c)
end
Expand Down

0 comments on commit f0321f2

Please sign in to comment.