Skip to content
Browse files

Oops, @mutex needs to exist before it can be synchronized upon

  • Loading branch information...
1 parent ca5208b commit 46cb61593b16d56a6c283afe5c9704660a73b579 Seth Morabito committed Nov 10, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 server/lib/bdrb_thread_pool.rb
View
2 server/lib/bdrb_thread_pool.rb
@@ -22,8 +22,8 @@ def initialize(master,size,logger)
@size = size
@threads = []
@work_queue = Queue.new
- @size.times { add_thread }
@mutex = Monitor.new
+ @size.times { add_thread }
end
# can be used to make a call in threaded manner

0 comments on commit 46cb615

Please sign in to comment.
Something went wrong with that request. Please try again.