/*
* Document-method: locked?
* call-seq: locked?
*
* Returns +true+ if this lock is currently held by some thread.
*
*/
static VALUE
rb_mutex_locked_p(VALUE self)
{
Mutex *mutex;
Data_Get_Struct(self, Mutex, mutex);
return RTEST(mutex->owner) ? Qtrue : Qfalse;
}