Searched refs:sem_t (Results 1 – 4 of 4) sorted by relevance
49 Semaphore= malloc(sizeof(sem_t)); in osl_createSemaphore()60 ret= sem_init((sem_t*)Semaphore, 0, initialCount); in osl_createSemaphore()83 sem_destroy((sem_t*)Semaphore); in osl_destroySemaphore()97 return (sem_wait((sem_t*)Semaphore) == 0); in osl_acquireSemaphore()111 return (sem_trywait((sem_t*)Semaphore) == 0); in osl_tryToAcquireSemaphore()126 return (sem_post((sem_t*)Semaphore) == 0); in osl_releaseSemaphore()
467 } sem_t; typedef468 extern int sem_init(sem_t* sem, int pshared, unsigned int value);469 extern int sem_destroy(sem_t* sem);470 extern int sem_wait(sem_t* sem);471 extern int sem_trywait(sem_t* sem);472 extern int sem_post(sem_t* sem);
482 int sem_init(sem_t* sem, int pshared, unsigned int value) in sem_init()491 int sem_destroy(sem_t* sem) in sem_destroy()499 int sem_wait(sem_t* sem) in sem_wait()514 int sem_trywait(sem_t* sem) in sem_trywait()535 int sem_post(sem_t* sem) in sem_post()
486 } sem_t; typedef487 extern int sem_init(sem_t* sem, int pshared, unsigned int value);488 extern int sem_destroy(sem_t* sem);489 extern int sem_wait(sem_t* sem);490 extern int sem_trywait(sem_t* sem);491 extern int sem_post(sem_t* sem);
Completed in 27 milliseconds