MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / acquire

Method acquire

Demo/metaclasses/Synch.py:49–79  ·  view source on GitHub ↗

Acquire the lock. If the optional flag argument is false, returns immediately when it cannot acquire the __wait lock without blocking (it may still block for a little while in order to acquire the __mutex lock). The return value is only relevant when the fla

(self, flag=1)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

test_valueFunction · 0.95
_testLockFunction · 0.95
value_funcFunction · 0.45
condition_funcFunction · 0.45
test_conditionFunction · 0.45
semaphore_funcFunction · 0.45
queuespeed_funcFunction · 0.45
test_queuespeedFunction · 0.45
pipe_funcFunction · 0.45
test_pipespeedFunction · 0.45
test_lockspeedFunction · 0.45
conditionspeed_funcFunction · 0.45

Calls 1

releaseMethod · 0.45

Tested by 6

test_valueFunction · 0.76
test_conditionFunction · 0.36
test_queuespeedFunction · 0.36
test_pipespeedFunction · 0.36
test_lockspeedFunction · 0.36
test_conditionspeedFunction · 0.36