Home
last modified time | relevance | path

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

/hardware/qcom/camera/msm8998/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()
/hardware/nxp/nfc/halimpl/utils/
DphNxpNciHal_utils.h43 sem_t sem; member
54 #define SEM_WAIT(cb_data) sem_wait(&((cb_data).sem))
55 #define SEM_POST(p_cb_data) sem_post(&((p_cb_data)->sem))
DphNxpNciHal_utils.cc350 if (sem_init(&pCallbackData->sem, 0, 0) == -1) { in phNxpNciHal_init_cb_data()
380 if (sem_destroy(&pCallbackData->sem)) { in phNxpNciHal_cleanup_cb_data()
412 sem_post(&pCallbackData->sem); in phNxpNciHal_releaseall_cb_data()