Skip to content

Commit 4d0ea8a

Browse files
committed
Fix some typos
1 parent 36ae16c commit 4d0ea8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/concurrent-ruby/concurrent/thread_safe/util/cheap_lockable.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)