Searched refs:sem (Results 1 – 6 of 6) sorted by relevance
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | lock_tests.py | 420 sem = self.semtype(1) 421 sem.acquire() 422 sem.release() 423 sem = self.semtype(2) 424 sem.acquire() 425 sem.acquire() 426 sem.release() 427 sem.release() 430 sem = self.semtype() 431 sem.acquire() [all …]
|
D | test_multiprocessing.py | 587 def _test_semaphore(self, sem): argument 588 self.assertReturnsIfImplemented(2, get_value, sem) 589 self.assertEqual(sem.acquire(), True) 590 self.assertReturnsIfImplemented(1, get_value, sem) 591 self.assertEqual(sem.acquire(), True) 592 self.assertReturnsIfImplemented(0, get_value, sem) 593 self.assertEqual(sem.acquire(False), False) 594 self.assertReturnsIfImplemented(0, get_value, sem) 595 self.assertEqual(sem.release(), None) 596 self.assertReturnsIfImplemented(1, get_value, sem) [all …]
|
/device/google/marlin/camera/QCamera2/stack/mm-camera-test/src/ |
D | cam_semaphore_tests.cpp | 51 cam_semaphore_t sem; in TEST() local 52 cam_sem_init(&sem, 0); in TEST() 60 ASSERT_EQ(-1, cam_sem_timedwait(&sem, &ts)); in TEST() 74 cam_sem_post(&sem); in TEST() 75 ASSERT_EQ(0, cam_sem_timedwait(&sem, &ts)); in TEST()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
D | thread_atheos.h | 22 sem_id sem; member 37 mutex->sem = create_semaphore(name, 0, 0); in fastmutex_create() 38 return (mutex->sem < 0) ? -1 : 0; in fastmutex_create() 45 return delete_semaphore(mutex->sem); in fastmutex_destroy() 55 return lock_semaphore(mutex->sem); in fastmutex_lock() 64 return lock_semaphore_x(mutex->sem, 1, 0, timeout); in fastmutex_timedlock() 73 return unlock_semaphore(mutex->sem); in fastmutex_unlock()
|
D | thread_os2.h | 96 _fmutex *sem = malloc(sizeof(_fmutex)); in PyThread_allocate_lock() local 101 (long)sem)); in PyThread_allocate_lock() 102 if (_fmutex_create(sem, 0)) { in PyThread_allocate_lock() 103 free(sem); in PyThread_allocate_lock() 104 sem = NULL; in PyThread_allocate_lock() 106 return (PyThread_type_lock)sem; in PyThread_allocate_lock()
|
/device/generic/goldfish-opengl/system/vulkan_enc/ |
D | ResourceTracker.cpp | 380 void unregister_VkSemaphore(VkSemaphore sem) { in unregister_VkSemaphore() argument 383 auto it = info_VkSemaphore.find(sem); in unregister_VkSemaphore() 392 info_VkSemaphore.erase(sem); in unregister_VkSemaphore()
|