Home
last modified time | relevance | path

Searched refs:BoundedSemaphore (Results 1 – 20 of 20) sorted by relevance

/third_party/python/Lib/multiprocessing/
Dcontext.py85 def BoundedSemaphore(self, value=1): member in BaseContext
87 from .synchronize import BoundedSemaphore
88 return BoundedSemaphore(value, ctx=self.get_context())
Dqueues.py49 self._sem = ctx.BoundedSemaphore(maxsize)
Dsynchronize.py142 class BoundedSemaphore(Semaphore): class
Dmanagers.py1213 SyncManager.register('BoundedSemaphore', threading.BoundedSemaphore,
/third_party/python/Lib/test/test_asyncio/
Dtest_pep492.py50 asyncio.BoundedSemaphore(),
72 asyncio.BoundedSemaphore(),
Dtest_locks.py55 asyncio.BoundedSemaphore,
73 asyncio.BoundedSemaphore(),
924 sem = asyncio.BoundedSemaphore()
/third_party/python/Doc/library/
Dasyncio-sync.rst30 * :class:`BoundedSemaphore`
337 Unlike :class:`BoundedSemaphore`, :class:`Semaphore` allows
341 BoundedSemaphore chapter
344 .. class:: BoundedSemaphore(value=1)
Dasyncio-api-index.rst186 * - :class:`BoundedSemaphore`
Dthreading.rst855 .. class:: BoundedSemaphore(value=1)
879 pool_sema = BoundedSemaphore(value=maxconnections)
1120 :class:`Semaphore`, and :class:`BoundedSemaphore` objects may be used as
Dmultiprocessing.rst341 :class:`RLock`, :class:`Semaphore`, :class:`BoundedSemaphore`,
1235 .. class:: BoundedSemaphore([value])
1238 :class:`threading.BoundedSemaphore`.
1389 blocked by a call to :meth:`BoundedSemaphore.acquire`, :meth:`Lock.acquire`,
1775 .. method:: BoundedSemaphore([value])
1777 Create a shared :class:`threading.BoundedSemaphore` object and return a
/third_party/python/Lib/multiprocessing/dummy/
D__init__.py26 from threading import Lock, RLock, Semaphore, BoundedSemaphore
/third_party/python/Lib/asyncio/
Dlocks.py404 class BoundedSemaphore(Semaphore): class
/third_party/python/Lib/test/
Dtest_threading.py140 sema = threading.BoundedSemaphore(value=3)
777 bs = threading.BoundedSemaphore(limit)
1583 semtype = staticmethod(threading.BoundedSemaphore)
D_test_multiprocessing.py1280 sem = self.BoundedSemaphore(2)
5746 BoundedSemaphore = staticmethod(multiprocessing.BoundedSemaphore) variable in ProcessesMixin
5764 BoundedSemaphore = property(operator.attrgetter('manager.BoundedSemaphore')) variable in ManagerMixin
5830 BoundedSemaphore = staticmethod(multiprocessing.dummy.BoundedSemaphore) variable in ThreadsMixin
Dtest_contextlib.py376 lock = threading.BoundedSemaphore()
/third_party/python/Lib/
Dthreading.py486 class BoundedSemaphore(Semaphore): class
/third_party/python/Misc/NEWS.d/
D3.5.0b1.rst675 asyncio.Lock, Condition, Semaphore, and BoundedSemaphore support new 'async
/third_party/python/Doc/whatsnew/
D3.8.rst1686 :class:`asyncio.BoundedSemaphore`, :class:`asyncio.Queue`,
D3.3.rst2037 :class:`threading.BoundedSemaphore`, :class:`threading.Event`, and
/third_party/python/Misc/
DHISTORY3812 - Issue #19158: A rare race in BoundedSemaphore could allow .release() too
18517 Lock, RLock, Condition, Semaphore, BoundedSemaphore.
24538 - Added function threading.BoundedSemaphore()