= private = protected
unlock()
Releases the lock. Raises ThreadError if mutex wasn’t locked by the current thread.
VALUE rb_mutex_unlock(VALUE self) { const char *err; mutex_t *mutex; GetMutexPtr(self, mutex); err = mutex_unlock(mutex, GET_THREAD()); if (err) rb_raise(rb_eThreadError, "%s", err); return self; }