We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0fdacef + fb5277a commit 15aa9abCopy full SHA for 15aa9ab
1 file changed
lib/rake/thread_pool.rb
@@ -108,19 +108,13 @@ def process_queue_item #:nodoc:
108
false
109
end
110
111
- def safe_thread_count
112
- @threads_mon.synchronize do
113
- @threads.count
114
- end
115
116
-
117
def start_thread # :nodoc:
118
@threads_mon.synchronize do
119
next unless @threads.count < @max_active_threads
120
121
t = Thread.new do
122
begin
123
- while safe_thread_count <= @max_active_threads
+ loop do
124
break unless process_queue_item
125
126
ensure
0 commit comments