Go to the source code of this file.
Typedefs | |
| typedef struct ddekit_thread | ddekit_thread_t |
Functions | |
| ddekit_thread_t * | ddekit_thread_create (void(*fun)(void *), void *arg, const char *name) |
| Create thread. | |
| ddekit_thread_t * | ddekit_thread_myself (void) |
| Reference to own DDEKit thread id. | |
| ddekit_thread_t * | ddekit_thread_setup_myself (const char *name) |
| Initialize thread with given name. | |
| void * | ddekit_thread_get_data (ddekit_thread_t *thread) |
| Get TLS data for a specific thread. | |
| void * | ddekit_thread_get_my_data (void) |
| Get TLS data for current thread. | |
| void | ddekit_thread_set_data (ddekit_thread_t *thread, void *data) |
| Set TLS data for specific thread. | |
| void | ddekit_thread_set_my_data (void *data) |
| Set TLS data for current thread. | |
| void | ddekit_thread_msleep (unsigned long msecs) |
| Sleep for some miliseconds. | |
| void | ddekit_thread_usleep (unsigned long usecs) |
| Sleep for some microseconds. | |
| void | ddekit_thread_nsleep (unsigned long nsecs) |
| Sleep for some nanoseconds. | |
| void | ddekit_thread_sleep (ddekit_lock_t *lock) |
| Sleep until a lock becomes unlocked. | |
| void | ddekit_thread_wakeup (ddekit_thread_t *thread) |
| Wakeup a waiting thread. | |
| void | ddekit_thread_exit (void) __attribute__((noreturn)) |
| Terminate a thread. | |
| void | ddekit_thread_terminate (ddekit_thread_t *thread) |
| Terminate a thread. | |
| const char * | ddekit_thread_get_name (ddekit_thread_t *thread) |
| Get the name, a thread registered with DDEKit. | |
| int | ddekit_thread_get_id (ddekit_thread_t *thread) |
| Get unique ID of a DDEKit thread. | |
| void | ddekit_thread_schedule (void) |
| Hint that this thread is done and may be scheduled somehow. | |
| void | ddekit_yield (void) |
| Hint that this thread is done and may be scheduled somehow. | |
| void | ddekit_init_threads (void) |
| Initialize DDEKit thread subsystem. | |
| typedef struct ddekit_thread ddekit_thread_t |
1.5.6