|
Public Types |
typedef unsigned int | key_t |
enum | priority_t { PRIORITY_LOW,
PRIORITY_NORMAL,
PRIORITY_HIGH
} |
enum | state_t { STATE_NEW,
STATE_RUNNING,
STATE_TERMINATED
} |
Public Member Functions |
| omni_thread (void(*fn)(void *), void *arg=NULL, priority_t pri=PRIORITY_NORMAL) |
| omni_thread (void *(*fn)(void *), void *arg=NULL, priority_t pri=PRIORITY_NORMAL) |
void | start (void) |
void | join (void **) |
void | set_priority (priority_t) |
value_t * | set_value (key_t k, value_t *v) |
value_t * | get_value (key_t k) |
value_t * | remove_value (key_t k) |
priority_t | priority (void) |
state_t | state (void) |
int | id (void) |
Static Public Member Functions |
static omni_thread * | create (void(*fn)(void *), void *arg=NULL, priority_t pri=PRIORITY_NORMAL) |
static omni_thread * | create (void *(*fn)(void *), void *arg=NULL, priority_t pri=PRIORITY_NORMAL) |
static void | exit (void *return_value=NULL) |
static omni_thread * | self (void) |
static void | yield (void) |
static void | sleep (unsigned long secs, unsigned long nanosecs=0) |
static void | get_time (unsigned long *abs_sec, unsigned long *abs_nsec, unsigned long rel_sec=0, unsigned long rel_nsec=0) |
static void | stacksize (unsigned long sz) |
static unsigned long | stacksize () |
static key_t | allocate_key () |
static omni_thread * | create_dummy (void) |
static void | release_dummy () |
Protected Member Functions |
| omni_thread (void *arg=NULL, priority_t pri=PRIORITY_NORMAL) |
void | start_undetached (void) |
virtual | ~omni_thread (void) |
Friends |
class | init_t |
class | omni_thread_dummy |
Classes |
class | ensure_self |
class | init_t |
class | value_t |