Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
def
synchronized(lock):
2
""
" Synchronization decorator. "
""
3
4
def
wrap(f):
Callers
nothing calls this directly
Calls
5
Lock
Class · 0.90
range
Function · 0.85
MyThread
Class · 0.70
start
Method · 0.45
join
Method · 0.45
Tested by
no test coverage detected