File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/concurrent-ruby/concurrent/thread_safe/util Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,14 @@ def cheap_broadcast
5454 extend Volatile
5555 attr_volatile :mutex
5656
57- # Non-reentrant Mutex#syncrhonize
57+ # Non-reentrant Mutex#synchronize
5858 def cheap_synchronize
5959 true until ( my_mutex = mutex ) || cas_mutex ( nil , my_mutex = Mutex . new )
6060 my_mutex . synchronize { yield }
6161 end
6262
6363 # Releases this object's +cheap_synchronize+ lock and goes to sleep waiting for other threads to +cheap_broadcast+, reacquires the lock on wakeup.
64- # Must only be called in +cheap_broadcast +'s block.
64+ # Must only be called in +cheap_synchronize +'s block.
6565 def cheap_wait
6666 conditional_variable = @conditional_variable ||= ConditionVariable . new
6767 conditional_variable . wait ( mutex )
You can’t perform that action at this time.
0 commit comments