simplify Environment#process looping
This commit is contained in:
1 parent
1509c95176
commit
a99e6e81b2
1 file changed
+2
-6
@@ -312,12 +312,8 @@ module Rscons
|
|||||||
completed_tcs = Set.new
|
completed_tcs = Set.new
|
||||||
# First do a non-blocking wait to pick up any threads that have
|
# First do a non-blocking wait to pick up any threads that have
|
||||||
# completed since last time.
|
# completed since last time.
|
||||||
loop do
|
while tc = wait_for_threaded_commands(nonblock: true)
|
||||||
if tc = wait_for_threaded_commands(nonblock: true)
|
completed_tcs << tc
|
||||||
completed_tcs << tc
|
|
||||||
else
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# If needed, do a blocking wait.
|
# If needed, do a blocking wait.
|
||||||
|
|||||||
Reference in new issue
Block a user