File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -504,13 +504,6 @@ do_mutex_unlock_safe(VALUE args)
504504 return Qnil ;
505505}
506506
507- /*
508- * call-seq:
509- * mutex.unlock -> self
510- *
511- * Releases the lock.
512- * Raises +ThreadError+ if +mutex+ wasn't locked by the current thread.
513- */
514507VALUE
515508rb_mutex_unlock (VALUE self )
516509{
Original file line number Diff line number Diff line change @@ -371,10 +371,10 @@ def try_lock
371371 end
372372
373373 # call-seq:
374- # mutex.lock -> self
374+ # mutex.unlock -> self
375375 #
376- # Attempts to grab the lock and waits if it isn't available .
377- # Raises +ThreadError+ if +mutex+ was locked by the current thread.
376+ # Releases the lock.
377+ # Raises +ThreadError+ if +mutex+ wasn't locked by the current thread.
378378 def unlock
379379 Primitive . rb_mut_unlock
380380 end
You can’t perform that action at this time.
0 commit comments