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

Method lock

Lib/mutex.py:39–46  ·  view source on GitHub ↗

Lock a mutex, call the function with supplied argument when it is acquired. If the mutex is already locked, place function and argument in the queue.

(self, function, argument)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

testandsetMethod · 0.95
functionFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected