Home | History | Annotate | Download | only in src

Lines Matching defs:semaphore

28 #include "osi/include/semaphore.h"
32 semaphore_t *semaphore; // NULL semaphore means immediate future
41 ret->semaphore = semaphore_new(0);
42 if (!ret->semaphore) {
43 LOG_ERROR(LOG_TAG, "%s unable to allocate memory for the semaphore.", __func__);
68 semaphore_post(future->semaphore);
74 // If the future is immediate, it will not have a semaphore
75 if (future->semaphore)
76 semaphore_wait(future->semaphore);
87 semaphore_free(future->semaphore);