Home
last modified time | relevance | path

Searched refs:SemLock (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Lib/multiprocessing/
Dsynchronize.py54 from _multiprocessing import SemLock
66 SEM_VALUE_MAX = _multiprocessing.SemLock.SEM_VALUE_MAX
72 class SemLock(object): class
75 sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
100 self._semlock = _multiprocessing.SemLock._rebuild(*state)
108 class Semaphore(SemLock):
111 SemLock.__init__(self, SEMAPHORE, value, SEM_VALUE_MAX)
130 SemLock.__init__(self, SEMAPHORE, value, value)
144 class Lock(SemLock):
147 SemLock.__init__(self, SEMAPHORE, 1, 1)
[all …]
Dqueues.py60 maxsize = _multiprocessing.SemLock.SEM_VALUE_MAX
/external/python/cpython3/Lib/multiprocessing/
Dsynchronize.py28 from _multiprocessing import SemLock, sem_unlink
40 SEM_VALUE_MAX = _multiprocessing.SemLock.SEM_VALUE_MAX
46 class SemLock(object): class
57 sl = self._semlock = _multiprocessing.SemLock(
81 util.Finalize(self, SemLock._cleanup, (self._semlock.name,),
110 self._semlock = _multiprocessing.SemLock._rebuild(*state)
117 next(SemLock._rand))
123 class Semaphore(SemLock):
126 SemLock.__init__(self, SEMAPHORE, value, SEM_VALUE_MAX, ctx=ctx)
145 SemLock.__init__(self, SEMAPHORE, value, value, ctx=ctx)
[all …]