Searched refs:hSemaphore (Results 1 – 2 of 2) sorted by relevance
148 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() argument175 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 …]
540 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);