Searched refs:BoundedSemaphore (Results 1 – 15 of 15) sorted by relevance
/external/python/cpython2/Lib/multiprocessing/ |
D | __init__.py | 199 def BoundedSemaphore(value=1): function 203 from multiprocessing.synchronize import BoundedSemaphore 204 return BoundedSemaphore(value)
|
D | queues.py | 48 from .synchronize import Lock, BoundedSemaphore, Semaphore, Condition 69 self._sem = BoundedSemaphore(maxsize)
|
D | synchronize.py | 127 class BoundedSemaphore(Semaphore): class
|
D | managers.py | 1105 SyncManager.register('BoundedSemaphore', threading.BoundedSemaphore,
|
/external/python/cpython2/Lib/test/ |
D | test_dummy_threading.py | 39 sema = _threading.BoundedSemaphore(value=3)
|
D | test_threading.py | 86 sema = threading.BoundedSemaphore(value=3) 468 bs = threading.BoundedSemaphore(limit) 889 semtype = staticmethod(threading.BoundedSemaphore)
|
D | test_contextlib.py | 317 lock = threading.BoundedSemaphore()
|
D | test_multiprocessing.py | 695 sem = self.BoundedSemaphore(2)
|
/external/python/cpython2/Lib/multiprocessing/dummy/ |
D | __init__.py | 53 from threading import Lock, RLock, Semaphore, BoundedSemaphore
|
/external/python/cpython2/Doc/library/ |
D | threading.rst | 144 .. function:: BoundedSemaphore([value]) 690 pool_sema = BoundedSemaphore(value=maxconnections) 806 :class:`Semaphore`, and :class:`BoundedSemaphore` objects may be used as
|
D | multiprocessing.rst | 219 :class:`Semaphore`, :class:`BoundedSemaphore`, :class:`Condition`, 936 .. class:: BoundedSemaphore([value]) 939 :class:`threading.BoundedSemaphore`. 1087 The :meth:`acquire` method of :class:`BoundedSemaphore`, :class:`Lock`, 1101 blocked by a call to :meth:`BoundedSemaphore.acquire`, :meth:`Lock.acquire`, 1463 .. method:: BoundedSemaphore([value]) 1465 Create a shared :class:`threading.BoundedSemaphore` object and return a
|
/external/python/cpython2/Lib/ |
D | threading.py | 497 def BoundedSemaphore(*args, **kwargs): function
|
/external/regex-re2/lib/codereview/ |
D | codereview.py | 3275 sema = threading.BoundedSemaphore(MAX_PARALLEL_UPLOADS)
|
/external/python/cpython2/Misc/ |
D | HISTORY | 1133 Lock, RLock, Condition, Semaphore, BoundedSemaphore. 7159 - Added function threading.BoundedSemaphore()
|
D | NEWS | 2607 - Issue #19158: A rare race in BoundedSemaphore could allow .release() too
|