Method: Mutex#locked?
- Defined in:
- thread_sync.c
#locked? ⇒ Boolean
Returns true
if this lock is currently held by some thread.
188 189 190 191 192 193 194 |
# File 'thread_sync.c', line 188
VALUE
rb_mutex_locked_p(VALUE self)
{
rb_mutex_t *mutex = mutex_ptr(self);
return mutex->fiber ? Qtrue : Qfalse;
}
|