thread.h File Reference

#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


Detailed Description

Definition in file thread.h.


Define Documentation

#define ISC_THREAD_H   1

Definition at line 21 of 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_self   (unsigned long)pthread_self

Definition at line 53 of file thread.h.

#define isc_thread_key_create   pthread_key_create

Definition at line 56 of file thread.h.

#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

Definition at line 58 of file thread.h.

Referenced by dns_name_settotextfilter().

#define isc_thread_key_delete   pthread_key_delete

Definition at line 59 of file thread.h.

Referenced by dns_name_destroy().


Typedef Documentation

typedef void* isc_threadresult_t

Definition at line 33 of file thread.h.

typedef void* isc_threadarg_t

Definition at line 34 of file thread.h.

typedef isc_threadresult_t(* isc_threadfunc_t)(isc_threadarg_t)

Definition at line 35 of file thread.h.

typedef pthread_key_t isc_thread_key_t

Definition at line 36 of file thread.h.


Function Documentation

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  ) 

Definition at line 26 of file thread.c.

References UNUSED.

void isc_thread_yield ( void   ) 

Definition at line 83 of file thread.c.


Variable Documentation

ISC_LANG_BEGINDECLS typedef pthread_t isc_thread_t

Definition at line 32 of file thread.h.

Referenced by isc__taskmgr_create(), and ISC_LIST().


Generated on Tue Apr 28 17:41:18 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha