|
Zero
0.1.0
|
#include "kits_thread.h"#include <sys/types.h>#include <sys/stat.h>#include <sys/time.h>#include <fcntl.h>#include <unistd.h>Classes | |
| struct | thread_args |
| class | root_thread_t |
Functions | |
| void | thread_destroy (void *thread_object) |
| void * | start_thread (void *) |
| static void | setup_thread (thread_args *args) |
| void | thread_init (void) |
| Initialize thread module. More... | |
| thread_t * | thread_get_self (void) |
| pthread_t | thread_create (thread_t *t, thread_pool *pool) |
| pthread_mutex_t | thread_mutex_create (const pthread_mutexattr_t *attr) |
| void | thread_mutex_lock (pthread_mutex_t &mutex) |
| void | thread_mutex_unlock (pthread_mutex_t &mutex) |
| void | thread_mutex_destroy (pthread_mutex_t &mutex) |
| pthread_cond_t | thread_cond_create (const pthread_condattr_t *attr) |
| void | thread_cond_destroy (pthread_cond_t &cond) |
| void | thread_cond_signal (pthread_cond_t &cond) |
| void | thread_cond_broadcast (pthread_cond_t &cond) |
| void | thread_cond_wait (pthread_cond_t &cond, pthread_mutex_t &mutex) |
| bool | thread_cond_wait (pthread_cond_t &cond, pthread_mutex_t &mutex, struct timespec &timeout) |
| bool | thread_cond_wait (pthread_cond_t &cond, pthread_mutex_t &mutex, int timeout_ms) |
Variables | |
| static __thread thread_t * | THREAD_KEY_SELF |
| __thread thread_pool * | THREAD_POOL |
| static thread_pool | default_thread_pool (1<< 30) |
|
static |
| void * start_thread | ( | void * | thread_object | ) |
| void thread_cond_broadcast | ( | pthread_cond_t & | cond | ) |
| pthread_cond_t thread_cond_create | ( | const pthread_condattr_t * | attr | ) |
| void thread_cond_destroy | ( | pthread_cond_t & | cond | ) |
| void thread_cond_signal | ( | pthread_cond_t & | cond | ) |
| void thread_cond_wait | ( | pthread_cond_t & | cond, |
| pthread_mutex_t & | mutex | ||
| ) |
| bool thread_cond_wait | ( | pthread_cond_t & | cond, |
| pthread_mutex_t & | mutex, | ||
| struct timespec & | timeout | ||
| ) |
| bool thread_cond_wait | ( | pthread_cond_t & | cond, |
| pthread_mutex_t & | mutex, | ||
| int | timeout_ms | ||
| ) |
| pthread_t thread_create | ( | thread_t * | t, |
| thread_pool * | pool | ||
| ) |
| void thread_destroy | ( | void * | thread_object | ) |
| thread_t* thread_get_self | ( | void | ) |
| void thread_init | ( | void | ) |
Initialize thread module.
| pthread_mutex_t thread_mutex_create | ( | const pthread_mutexattr_t * | attr | ) |
| void thread_mutex_destroy | ( | pthread_mutex_t & | mutex | ) |
| void thread_mutex_lock | ( | pthread_mutex_t & | mutex | ) |
| void thread_mutex_unlock | ( | pthread_mutex_t & | mutex | ) |
|
static |
|
static |
| __thread thread_pool* THREAD_POOL |
1.8.12