MCPcopy Create free account
hub / github.com/ActiveState/code / recipe-465057.py

File recipe-465057.py

recipes/Python/465057_Basic_synchronization_decorator/recipe-465057.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1def synchronized(lock):
2 """ Synchronization decorator. """
3
4 def wrap(f):

Callers

nothing calls this directly

Calls 5

LockClass · 0.90
rangeFunction · 0.85
MyThreadClass · 0.70
startMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected