Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_dummy_threading.py12 global sema
20 sema.acquire()
34 sema.release()
38 global sema
39 sema = _threading.BoundedSemaphore(value=3)
Dtest_threading.py30 def __init__(self, name, testcase, sema, mutex, nrunning): argument
33 self.sema = sema
43 with self.sema:
80 sema = threading.BoundedSemaphore(value=3)
87 t = TestThread("<thread %d>"%i, self, sema, mutex, numrunning)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dthread_atheos.h158 sem_id sema; in PyThread_allocate_lock()
185 sema = create_semaphore(name, 1, 0); in PyThread_allocate_lock()
186 if (sema < 0) { in PyThread_allocate_lock()
189 sema = 0; in PyThread_allocate_lock()
191 dprintf(("PyThread_allocate_lock()-> %p\n", sema)); in PyThread_allocate_lock()
192 return (PyThread_type_lock) sema; in PyThread_allocate_lock()