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

Method acquire

Lib/threading.py:439–474  ·  view source on GitHub ↗

Acquire a semaphore, decrementing the internal counter by one. When invoked without arguments: if the internal counter is larger than zero on entry, decrement it by one and return immediately. If it is zero on entry, block, waiting until some other thread has called release(

(self, blocking=1)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

_noteMethod · 0.80
waitMethod · 0.45

Tested by

no test coverage detected