Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2_4_6) is shown here.
owned?()
public
Returns true if this lock is
currently held by current thread.
VALUE
rb_mutex_owned_p(VALUE self)
{
VALUE owned = Qfalse;
rb_thread_t *th = GET_THREAD();
rb_mutex_t *mutex;
GetMutexPtr(self, mutex);
if (mutex->th == th)
owned = Qtrue;
return owned;
}