method

locked?

ruby latest stable - Class: Mutex
locked?()
public

Returns true if this lock is currently held by some thread.