MCPcopy Create free account
hub / github.com/MorvanZhou/tutorials / job2

Function job2

threadingTUT/thread6_lock.py:16–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 lock.release()
15
16def job2():
17 global A, lock
18 lock.acquire()
19 for i in range(10):
20 A += 10
21 print('job2', A)
22 lock.release()
23
24if __name__ == '__main__':
25 lock = threading.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected