Home
last modified time | relevance | path

Searched refs:sem (Results 1 – 6 of 6) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dlock_tests.py420 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 …]
Dtest_multiprocessing.py587 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/
Dcam_semaphore_tests.cpp51 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/
Dthread_atheos.h22 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()
Dthread_os2.h96 _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/
DResourceTracker.cpp380 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()