Class RLock

java.lang.Object
org.python.core.PyObject
org.python.modules._threading.RLock
All Implemented Interfaces:
Serializable, ContextManager

public class RLock extends PyObject implements ContextManager
See Also:
  • Field Details

    • TYPE

      public static final PyType TYPE
  • Constructor Details

    • RLock

      public RLock()
  • Method Details

    • getLock

      public Lock getLock()
    • acquire

      public boolean acquire()
    • acquire

      public boolean acquire(boolean blocking)
    • __enter__

      public PyObject __enter__(ThreadState ts)
      Specified by:
      __enter__ in interface ContextManager
    • release

      public void release()
    • __exit__

      public boolean __exit__(ThreadState ts, PyException exception)
      Specified by:
      __exit__ in interface ContextManager
    • locked

      public boolean locked()
    • _is_owned

      public boolean _is_owned()
    • getWaitQueueLength

      public int getWaitQueueLength(Condition condition)
    • toString

      public String toString()
      Overrides:
      toString in class PyObject