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
54
54
extend Volatile
55
55
attr_volatile :mutex
56
56
57
- # Non-reentrant Mutex#syncrhonize
57
+ # Non-reentrant Mutex#synchronize
58
58
def cheap_synchronize
59
59
true until ( my_mutex = mutex ) || cas_mutex ( nil , my_mutex = Mutex . new )
60
60
my_mutex . synchronize { yield }
61
61
end
62
62
63
63
# 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.
65
65
def cheap_wait
66
66
conditional_variable = @conditional_variable ||= ConditionVariable . new
67
67
conditional_variable . wait ( mutex )
You can’t perform that action at this time.
0 commit comments