gwion-util
utilities for the Gwion project
|
cross-platform thread functions More...
#include <pthread.h>
#include <dlfcn.h>
Go to the source code of this file.
Macros | |
#define | THREAD_RETTYPE void * |
#define | THREAD_FUNC(a) |
#define | THREAD_TYPE pthread_t |
#define | THREAD_CREATE(thread, func, arg) |
#define | THREAD_JOIN(thread) |
#define | THREAD_RETURN(arg) |
#define | THREAD_DETACH(arg) |
#define | MUTEX_TYPE pthread_mutex_t * |
#define | MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER |
#define | MUTEX_SETUP(x) |
#define | MUTEX_CLEANUP(x) |
#define | MUTEX_LOCK(x) |
#define | MUTEX_COND_LOCK(x) |
#define | MUTEX_UNLOCK(x) |
#define | MUTEX_COND_UNLOCK(x) |
#define | THREAD_COND_TYPE pthread_cond_t* |
#define | THREAD_COND_SETUP(x) |
#define | THREAD_COND_WAIT(x, mutex) |
#define | THREAD_COND_SIGNAL(x) |
#define | THREAD_COND_BROADCAST(x) |
#define | THREAD_COND_CLEANUP(x) |
#define | STR_EXPAND(tok) |
#define | STR(tok) |
#define | DLOPEN(dl, b) |
#define | DLSYM(dl, t, a) |
#define | DLCLOSE(dl) |
#define | DLERROR() |
cross-platform thread functions
Definition in file gwion_thread.h.
#define DLCLOSE | ( | dl | ) |
Definition at line 93 of file gwion_thread.h.
#define DLERROR | ( | ) |
Definition at line 94 of file gwion_thread.h.
#define DLOPEN | ( | dl, | |
b ) |
Definition at line 91 of file gwion_thread.h.
#define DLSYM | ( | dl, | |
t, | |||
a ) |
Definition at line 92 of file gwion_thread.h.
#define MUTEX_CLEANUP | ( | x | ) |
Definition at line 60 of file gwion_thread.h.
#define MUTEX_COND_LOCK | ( | x | ) |
Definition at line 66 of file gwion_thread.h.
#define MUTEX_COND_UNLOCK | ( | x | ) |
Definition at line 68 of file gwion_thread.h.
#define MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER |
Definition at line 51 of file gwion_thread.h.
#define MUTEX_LOCK | ( | x | ) |
Definition at line 65 of file gwion_thread.h.
#define MUTEX_SETUP | ( | x | ) |
Definition at line 52 of file gwion_thread.h.
#define MUTEX_TYPE pthread_mutex_t * |
Definition at line 50 of file gwion_thread.h.
#define MUTEX_UNLOCK | ( | x | ) |
Definition at line 67 of file gwion_thread.h.
#define STR | ( | tok | ) |
Definition at line 88 of file gwion_thread.h.
#define STR_EXPAND | ( | tok | ) |
Definition at line 87 of file gwion_thread.h.
#define THREAD_COND_BROADCAST | ( | x | ) |
Definition at line 78 of file gwion_thread.h.
#define THREAD_COND_CLEANUP | ( | x | ) |
Definition at line 79 of file gwion_thread.h.
#define THREAD_COND_SETUP | ( | x | ) |
Definition at line 71 of file gwion_thread.h.
#define THREAD_COND_SIGNAL | ( | x | ) |
Definition at line 77 of file gwion_thread.h.
#define THREAD_COND_TYPE pthread_cond_t* |
Definition at line 70 of file gwion_thread.h.
#define THREAD_COND_WAIT | ( | x, | |
mutex ) |
Definition at line 76 of file gwion_thread.h.
#define THREAD_CREATE | ( | thread, | |
func, | |||
arg ) |
Definition at line 40 of file gwion_thread.h.
#define THREAD_DETACH | ( | arg | ) |
Definition at line 48 of file gwion_thread.h.
#define THREAD_FUNC | ( | a | ) |
Definition at line 38 of file gwion_thread.h.
#define THREAD_JOIN | ( | thread | ) |
Definition at line 42 of file gwion_thread.h.
#define THREAD_RETTYPE void * |
Definition at line 37 of file gwion_thread.h.
#define THREAD_RETURN | ( | arg | ) |
Definition at line 43 of file gwion_thread.h.
#define THREAD_TYPE pthread_t |
Definition at line 39 of file gwion_thread.h.