Home
last modified time | relevance | path

Searched refs:hSemaphore (Results 1 – 2 of 2) sorted by relevance

/aosp12/hardware/nxp/nfc/snxxx/halimpl/libnxpparser/osal/src/
H A DphOsal_Posix.cpp148 if (hSemaphore == NULL) { in phOsal_SemaphoreCreate()
153 *hSemaphore = (sem_t*)malloc(sizeof(sem_t)); in phOsal_SemaphoreCreate()
154 if (*hSemaphore == NULL) { in phOsal_SemaphoreCreate()
172 OSALSTATUS phOsal_SemaphorePost(void* hSemaphore) { in phOsal_SemaphorePost() argument
175 if (hSemaphore == NULL) { in phOsal_SemaphorePost()
185 if (sem_post((sem_t*)hSemaphore) == -1) { in phOsal_SemaphorePost()
197 if (hSemaphore == NULL) { in phOsal_SemaphoreWait()
208 if (sem_wait((sem_t*)hSemaphore) == -1) { in phOsal_SemaphoreWait()
252 if (hSemaphore == NULL) { in phOsal_SemaphoreDelete()
262 if (sem_destroy((sem_t*)hSemaphore) == -1) { in phOsal_SemaphoreDelete()
[all …]
/aosp12/hardware/nxp/nfc/snxxx/halimpl/libnxpparser/osal/inc/
H A DphOsal_Posix.h540 OSALSTATUS phOsal_SemaphoreCreate(void** hSemaphore, uint8_t bInitialValue,
559 OSALSTATUS phOsal_SemaphorePost(void* hSemaphore);
577 OSALSTATUS phOsal_SemaphoreWait(void* hSemaphore, uint32_t timeout_ms);
591 OSALSTATUS phOsal_SemaphoreDelete(void* hSemaphore);