Permalink
Browse files

Merge branch 'master' of github.com:ph7/system-timer

  • Loading branch information...
2 parents 29bca7a + 50cfbb1 commit ed90ff9474b7938ff32628c5c33fecdcd73a215d @ph7 ph7 committed Jan 19, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/system_timer.rb
View
@@ -3,6 +3,7 @@
require 'rubygems'
require 'timeout'
require 'forwardable'
+require 'monitor'
require File.dirname(__FILE__) + '/system_timer/thread_timer'
require File.dirname(__FILE__) + '/system_timer/concurrent_timer_pool'
@@ -31,7 +32,7 @@ module SystemTimer
Thread.exclusive do # Avoid race conditions for mutex and pool creation
@timer_pool = ConcurrentTimerPool.new
- @mutex = Mutex.new
+ @mutex = Monitor.new
end
class << self

0 comments on commit ed90ff9

Please sign in to comment.