MCPcopy Index your code
hub / github.com/python/cpython / acquire

Method acquire

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

Source from the content-addressed store, hash-verified

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

Callers 15

test_threadingFunction · 0.45
setUpMethod · 0.45
test_starting_threadsMethod · 0.45
test__countMethod · 0.45
taskMethod · 0.45
test_join_from_selfMethod · 0.45
make_lockMethod · 0.45
self_joinerMethod · 0.45

Calls 2

appendMethod · 0.45
lockedMethod · 0.45

Tested by

no test coverage detected