#include <pthread.h>
#include <isc/lang.h>
#include <isc/result.h>
Go to the source code of this file.
Defines | |
#define | ISC_THREAD_H 1 |
#define | isc_thread_join(t, rp) |
#define | isc_thread_self (unsigned long)pthread_self |
#define | isc_thread_key_create pthread_key_create |
#define | isc_thread_key_getspecific pthread_getspecific |
#define | isc_thread_key_setspecific pthread_setspecific |
#define | isc_thread_key_delete pthread_key_delete |
Typedefs | |
typedef void * | isc_threadresult_t |
typedef void * | isc_threadarg_t |
typedef isc_threadresult_t(* | isc_threadfunc_t )(isc_threadarg_t) |
typedef pthread_key_t | isc_thread_key_t |
Functions | |
isc_result_t | isc_thread_create (isc_threadfunc_t, isc_threadarg_t, isc_thread_t *) |
void | isc_thread_setconcurrency (unsigned int level) |
void | isc_thread_yield (void) |
Variables | |
ISC_LANG_BEGINDECLS typedef pthread_t | isc_thread_t |
Definition in file thread.h.
#define isc_thread_join | ( | t, | |||
rp | ) |
Value:
((pthread_join((t), (rp)) == 0) ? \ ISC_R_SUCCESS : ISC_R_UNEXPECTED)
Definition at line 49 of file thread.h.
Referenced by isc__taskmgr_destroy(), and isc__timermgr_destroy().
#define isc_thread_key_getspecific pthread_getspecific |
Definition at line 57 of file thread.h.
Referenced by dns_name_settotextfilter(), and dns_name_totext2().
#define isc_thread_key_setspecific pthread_setspecific |
#define isc_thread_key_delete pthread_key_delete |
typedef void* isc_threadresult_t |
typedef void* isc_threadarg_t |
typedef isc_threadresult_t(* isc_threadfunc_t)(isc_threadarg_t) |
typedef pthread_key_t isc_thread_key_t |
isc_result_t isc_thread_create | ( | isc_threadfunc_t | , | |
isc_threadarg_t | , | |||
isc_thread_t * | ||||
) |
Definition at line 36 of file thread.c.
References ISC_R_SUCCESS, ISC_R_UNEXPECTED, and THREAD_MINSTACKSIZE.
Referenced by isc__taskmgr_create(), and isc__timermgr_create().
void isc_thread_setconcurrency | ( | unsigned int | level | ) |
ISC_LANG_BEGINDECLS typedef pthread_t isc_thread_t |