#include <pthread.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) |
| #define OMNI_CONDITION_IMPLEMENTATION pthread_cond_t posix_cond; |
| #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_SEMAPHORE_IMPLEMENTATION |
Value:
omni_mutex m; \ omni_condition c; \ int value; \ int max_count;
| #define OMNI_THREAD_IMPLEMENTATION |
Value:
pthread_t posix_thread; \ static int posix_priority(priority_t); \ friend void* omni_thread_wrapper(void* ptr);
| void* omni_thread_wrapper | ( | void * | ptr | ) |
1.5.9