Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pyload/pyload
/ new
Function
new
module/utils.py:165–171 ·
view source on GitHub ↗
(*args)
Source
from the content-addressed store, hash-verified
163
164
def
lock(func):
165
def
new(*args):
166
#print "Handler: %s args: %s" % (func,args[1:])
167
args[0].lock.acquire()
168
try
:
169
return
func(*args)
170
finally:
171
args[0].lock.release()
172
173
return
new
174
Callers
nothing calls this directly
Calls
2
acquire
Method · 0.80
release
Method · 0.45
Tested by
no test coverage detected