MCPcopy Index your code
hub / github.com/RustPython/RustPython / __init__

Method __init__

Lib/test/test_thread.py:158–163  ·  view source on GitHub ↗
(self, num_threads)

Source from the content-addressed store, hash-verified

156
157class Barrier:
158 def __init__(self, num_threads):
159 self.num_threads = num_threads
160 self.waiting = 0
161 self.checkin_mutex = thread.allocate_lock()
162 self.checkout_mutex = thread.allocate_lock()
163 self.checkout_mutex.acquire()
164
165 def enter(self):
166 self.checkin_mutex.acquire()

Callers

nothing calls this directly

Calls 1

acquireMethod · 0.45

Tested by

no test coverage detected