Code example for ReentrantLock

Methods: isLocked

0
        return false; 
    } 
 
    @ExposedMethod 
    final boolean Lock_locked() { 
        return _lock.isLocked();
    } 
 
    public boolean locked() { 
        return Lock_locked(); 
    } 
 
    @ExposedMethod 
    final boolean Lock__is_owned() { 
        return _lock.isHeldByCurrentThread();
    } 
 
    public boolean _is_owned() { 
        return Lock__is_owned(); 
    } 
}