MCPcopy Index your code
hub / github.com/RustPython/RustPython / acquire

Method acquire

Lib/test/lock_tests.py:397–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

395 rlock = self.locktype()
396 self.assertFalse(rlock.locked())
397 def acquire():
398 result.append(rlock.locked())
399 rlock.acquire()
400 result.append(rlock.locked())
401
402 with Bunch(acquire, 1):
403 pass

Callers 15

setUpMethod · 0.45
test_starting_threadsMethod · 0.45
test__countMethod · 0.45
taskMethod · 0.45
__init__Method · 0.45
enterMethod · 0.45
test_barrierMethod · 0.45
test_releaseMethod · 0.45

Calls 2

appendMethod · 0.45
lockedMethod · 0.45

Tested by

no test coverage detected