Top Fields Constructors Methods
org.python.modules._threading

public Class RLock

Additional top-level class in compilation unit: RLockImplementation.

extends PyObject
implements ContextManager, ConditionSupportingLock
Class Inheritance
All Implemented Interfaces
org.python.modules._threading.ConditionSupportingLock, org.python.core.ContextManager
Annotations
@Untraversable
@ExposedType
name:_threading.RLock
Imports
org.python.core.ContextManager, .Py, .PyException, .PyNewWrapper, .PyObject, .PyString, .PyTuple, .PyType, .ThreadState, .Untraversable, org.python.expose.ExposedMethod, .ExposedNew, .ExposedType

Field Summary

Modifier and TypeField and Description
private final RLockImplementation
public static final PyType
Inherited from org.python.core.PyObject:
attributesgcMonitorGlobalobjtype

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public PyObject
public boolean
public boolean
public boolean
public boolean
public Lock
public int
public boolean
public void
pack-priv final PyObject
pack-priv final boolean
RLock___exit__(PyObject type, PyObject value, PyObject traceback)

pack-priv static final PyObject
RLock___new__(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords)

pack-priv final boolean
pack-priv final boolean
RLock_acquire(boolean blocking)

pack-priv final boolean
pack-priv final void
public String
toString()

Overrides org.python.core.PyObject.toString.

Returns a string representation of the object.

Inherited from org.python.core.PyObject:
__abs____add____and____call____call____call____call____call____call____call____call____call____call____call____call____call____call____call____call____cmp____coerce____coerce_ex____complex____contains____delattr____delattr____delete____delitem____delitem____delslice____delslice____dir____div____divmod____ensure_finalizer____eq____findattr____findattr____findattr_ex____finditem____finditem____finditem____float____floordiv____format____ge____get____getattr____getattr____getitem____getitem____getnewargs____getslice____getslice____gt____hash____hex____iadd____iand____idiv____idivmod____ifloordiv____ilshift____imod____imul____index____int____invert____ior____ipow____irshift____isub____iter____iternext____itruediv____ixor____le____len____long____lshift____lt____mod____mul____ne____neg____nonzero____not____oct____or____pos____pow____pow____radd____rand____rawdir____rdiv____rdivmod____reduce____reduce_ex____reduce_ex____repr____rfloordiv____rlshift____rmod____rmul____ror____rpow____rrshift____rshift____rsub____rtruediv____rxor____set____setattr____setattr____setitem____setitem____setitem____setslice____setslice____str____sub____tojava____truediv____trunc____unicode____xor___add_and_callextra_cmp_div_divmod_doget_doget_doset_eq_floordiv_ge_gt_iadd_iand_idiv_idivmod_ifloordiv_ilshift_imod_imul_in_ior_ipow_irshift_is_isnot_isub_itruediv_ixor_jcall_jcallexc_jthrow_le_lshift_lt_mod_mul_ne_notin_or_pow_rshift_sub_truediv_unsupportedop_xoradaptToCoerceTupleasDoubleasIndexasIndexasIntasIntasIterableasLongasLongasNameasNameasStringasStringasStringOrNullasStringOrNullbit_lengthconjugatedelDictdelTypedispatch__init__equalsfastGetClassfastGetDictfinalizegetDictgetJavaProxygetTypehashCodeimpAttrimplementsDescrDeleteimplementsDescrGetimplementsDescrSetinvokeinvokeinvokeinvokeinvokeinvokeisCallableisDataDescrisIndexisIntegerisMappingTypeisNumberTypeisSequenceTypemergeClassDictmergeDictAttrmergeListAttrnoAttributeErrorobject___subclasshook__readonlyAttributeErrorrunsupportedopMessagesetDictsetTypeunsupportedopMessage

Field Detail

_lockback to summary
private final RLockImplementation _lock
TYPEback to summary
public static final PyType TYPE

Hides org.python.core.PyObject.TYPE.

Constructor Detail

RLockback to summary
public RLock()

Method Detail

__enter__back to summary
public PyObject __enter__(ThreadState ts)

Implements org.python.core.ContextManager.__enter__.

__exit__back to summary
public boolean __exit__(ThreadState ts, PyException exception)

Implements org.python.core.ContextManager.__exit__.

_is_ownedback to summary
public boolean _is_owned()

Implements org.python.modules._threading.ConditionSupportingLock._is_owned.

acquireback to summary
public boolean acquire()

Implements org.python.modules._threading.ConditionSupportingLock.acquire.

acquireback to summary
public boolean acquire(boolean blocking)

Implements org.python.modules._threading.ConditionSupportingLock.acquire.

getLockback to summary
public Lock getLock()

Implements org.python.modules._threading.ConditionSupportingLock.getLock.

getWaitQueueLengthback to summary
public int getWaitQueueLength(Condition condition)

Implements org.python.modules._threading.ConditionSupportingLock.getWaitQueueLength.

lockedback to summary
public boolean locked()
releaseback to summary
public void release()

Implements org.python.modules._threading.ConditionSupportingLock.release.

RLock___enter__back to summary
pack-priv final PyObject RLock___enter__()
Annotations
@ExposedMethod
RLock___exit__back to summary
pack-priv final boolean RLock___exit__(PyObject type, PyObject value, PyObject traceback)
Annotations
@ExposedMethod
RLock___new__back to summary
pack-priv static final PyObject RLock___new__(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords)
Annotations
@ExposedNew
RLock__is_ownedback to summary
pack-priv final boolean RLock__is_owned()
Annotations
@ExposedMethod
RLock_acquireback to summary
pack-priv final boolean RLock_acquire(boolean blocking)
Annotations
@ExposedMethod
defaults:true
RLock_lockedback to summary
pack-priv final boolean RLock_locked()
Annotations
@ExposedMethod
RLock_releaseback to summary
pack-priv final void RLock_release()
Annotations
@ExposedMethod
toStringback to summary
public String toString()

Overrides org.python.core.PyObject.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@ExposedMethod