MCPcopy Index your code
hub / github.com/python/cpython / Lock

Method Lock

Lib/multiprocessing/context.py:65–68  ·  view source on GitHub ↗

Returns a non-recursive lock object

(self)

Source from the content-addressed store, hash-verified

63 return Pipe(duplex)
64
65 def Lock(self):
66 '''Returns a non-recursive lock object'''
67 from .synchronize import Lock
68 return Lock(ctx=self.get_context())
69
70 def RLock(self):
71 '''Returns a recursive lock object'''

Callers 15

__init__Method · 0.80
__init__Method · 0.80
events.pyFile · 0.80
mixins.pyFile · 0.80
__init__Method · 0.80
__init__Method · 0.80
setUpMethod · 0.80
mp_preload.pyFile · 0.80
__init__Method · 0.80
test_repr_lockMethod · 0.80
test_lockMethod · 0.80

Calls 2

get_contextMethod · 0.95
LockClass · 0.70

Tested by 15

setUpMethod · 0.64
__init__Method · 0.64
test_repr_lockMethod · 0.64
test_lockMethod · 0.64
test_lock_contextMethod · 0.64
__init__Method · 0.64
test_thousandMethod · 0.64
test_getobj_getlockMethod · 0.64
test_lock_no_argsMethod · 0.64
test_foreign_threadMethod · 0.64