#include <pthread.h>
Include dependency graph for ot_posix.h:
Go to the source code of this file.
Defines | |
#define | OMNI_MUTEX_IMPLEMENTATION pthread_mutex_t posix_mutex; |
#define | OMNI_MUTEX_LOCK_IMPLEMENTATION pthread_mutex_lock(&posix_mutex); |
#define | OMNI_MUTEX_TRYLOCK_IMPLEMENTATION (pthread_mutex_trylock(&posix_mutex)==0); |
#define | OMNI_MUTEX_UNLOCK_IMPLEMENTATION pthread_mutex_unlock(&posix_mutex); |
#define | OMNI_CONDITION_IMPLEMENTATION pthread_cond_t posix_cond; |
#define | OMNI_SEMAPHORE_IMPLEMENTATION |
#define | OMNI_THREAD_IMPLEMENTATION |
Functions | |
void * | omni_thread_wrapper (void *ptr) |
|
|
|
|
|
|
|
|
|
|
|
Value: omni_mutex m; \ omni_condition c; \ int value; \ int max_count; |
|
Value: pthread_t posix_thread; \ static int posix_priority(priority_t); \ friend void* omni_thread_wrapper(void* ptr); |
|
|