Back to index

openldap  2.4.31
Defines | Typedefs | Enumerations | Functions | Variables
ldap_pvt_thread.h File Reference
#include "ldap_cdefs.h"
#include "ldap_int_thread.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _LDAP_PVT_THREAD_H   /* libldap_r/ldap_thr_debug.h #undefines this */
#define LDAP_PVT_MUTEX_FIRSTCREATE   LDAP_INT_MUTEX_FIRSTCREATE
#define LDAP_PVT_MUTEX_NULL   LDAP_INT_MUTEX_NULL
#define ldap_pvt_thread_equal   ldap_int_thread_equal
#define LDAP_PVT_THREAD_CREATE_JOINABLE   0
#define LDAP_PVT_THREAD_CREATE_DETACHED   1
#define LDAP_PVT_THREAD_SET_STACK_SIZE
#define LDAP_PVT_THREAD_STACK_SIZE   ( 1 * 1024 * 1024 * sizeof(void *) )
#define LDAP_PVT_THREAD_ASSERT_MUTEX_OWNER(mutex)   ((void) 0)
#define LDAP_PVT_THREAD_EINVAL   EINVAL
#define LDAP_PVT_THREAD_EBUSY   EINVAL
#define LDAP_PVT_THREAD_H_DONE

Typedefs

typedef ldap_int_thread_mutex_t ldap_pvt_thread_mutex_t
typedef ldap_int_thread_cond_t ldap_pvt_thread_cond_t
typedef ldap_int_thread_rdwr_t ldap_pvt_thread_rdwr_t
typedef ldap_int_thread_rmutex_t ldap_pvt_thread_rmutex_t
typedef ldap_int_thread_key_t ldap_pvt_thread_key_t
typedef ldap_int_thread_pool_t ldap_pvt_thread_pool_t
typedef void
*ldap_pvt_thread_start_t 
LDAP_P ((void *ctx, void *arg))
typedef voiddata

Enumerations

enum  ldap_pvt_thread_pool_param_t {
  LDAP_PVT_THREAD_POOL_PARAM_UNKNOWN = -1, LDAP_PVT_THREAD_POOL_PARAM_MAX, LDAP_PVT_THREAD_POOL_PARAM_MAX_PENDING, LDAP_PVT_THREAD_POOL_PARAM_OPEN,
  LDAP_PVT_THREAD_POOL_PARAM_STARTING, LDAP_PVT_THREAD_POOL_PARAM_ACTIVE, LDAP_PVT_THREAD_POOL_PARAM_PAUSING, LDAP_PVT_THREAD_POOL_PARAM_PENDING,
  LDAP_PVT_THREAD_POOL_PARAM_BACKLOAD, LDAP_PVT_THREAD_POOL_PARAM_ACTIVE_MAX, LDAP_PVT_THREAD_POOL_PARAM_PENDING_MAX, LDAP_PVT_THREAD_POOL_PARAM_BACKLOAD_MAX,
  LDAP_PVT_THREAD_POOL_PARAM_STATE
}

Functions

ldap_pvt_thread_initialize LDAP_P ((void))
ldap_pvt_thread_sleep LDAP_P ((unsigned int s))
ldap_pvt_thread_set_concurrency LDAP_P ((int))
ldap_pvt_thread_create LDAP_P ((ldap_pvt_thread_t *thread, int detach, void *(*start_routine)(void *), void *arg))
ldap_pvt_thread_exit LDAP_P ((void *retval))
ldap_pvt_thread_join LDAP_P ((ldap_pvt_thread_t thread, void **status))
ldap_pvt_thread_kill LDAP_P ((ldap_pvt_thread_t thread, int signo))
ldap_pvt_thread_cond_init LDAP_P ((ldap_pvt_thread_cond_t *cond))
ldap_pvt_thread_cond_wait LDAP_P ((ldap_pvt_thread_cond_t *cond, ldap_pvt_thread_mutex_t *mutex))
ldap_pvt_thread_mutex_init LDAP_P ((ldap_pvt_thread_mutex_t *mutex))
ldap_pvt_thread_rmutex_init LDAP_P ((ldap_pvt_thread_rmutex_t *rmutex))
ldap_pvt_thread_rmutex_lock LDAP_P ((ldap_pvt_thread_rmutex_t *rmutex, ldap_pvt_thread_t owner))
ldap_pvt_thread_rdwr_init LDAP_P ((ldap_pvt_thread_rdwr_t *rdwrp))
ldap_pvt_thread_key_create LDAP_P ((ldap_pvt_thread_key_t *keyp))
ldap_pvt_thread_key_destroy LDAP_P ((ldap_pvt_thread_key_t key))
ldap_pvt_thread_key_setdata LDAP_P ((ldap_pvt_thread_key_t key, void *data))
ldap_pvt_thread_key_getdata LDAP_P ((ldap_pvt_thread_key_t key, void **data))
typedef void (ldap_pvt_thread_pool_keyfree_t) LDAP_P((void *key
ldap_pvt_thread_pool_init LDAP_P ((ldap_pvt_thread_pool_t *pool_out, int max_threads, int max_pending))
ldap_pvt_thread_pool_submit LDAP_P ((ldap_pvt_thread_pool_t *pool, ldap_pvt_thread_start_t *start, void *arg))
ldap_pvt_thread_pool_maxthreads LDAP_P ((ldap_pvt_thread_pool_t *pool, int max_threads))
ldap_pvt_thread_pool_query LDAP_P ((ldap_pvt_thread_pool_t *pool, ldap_pvt_thread_pool_param_t param, void *value))
ldap_pvt_thread_pool_pausing LDAP_P ((ldap_pvt_thread_pool_t *pool))
ldap_pvt_thread_pool_destroy LDAP_P ((ldap_pvt_thread_pool_t *pool, int run_pending))
ldap_pvt_thread_pool_getkey LDAP_P ((void *ctx, void *key, void **data, ldap_pvt_thread_pool_keyfree_t **kfree))
ldap_pvt_thread_pool_setkey LDAP_P ((void *ctx, void *key, void *data, ldap_pvt_thread_pool_keyfree_t *kfree, void **olddatap, ldap_pvt_thread_pool_keyfree_t **oldkfreep))
ldap_pvt_thread_pool_purgekey LDAP_P ((void *key))
ldap_pvt_thread_pool_tid LDAP_P ((void *ctx))

Variables

LDAP_BEGIN_DECL typedef
ldap_int_thread_t 
ldap_pvt_thread_t

Define Documentation

#define _LDAP_PVT_THREAD_H   /* libldap_r/ldap_thr_debug.h #undefines this */

Definition at line 18 of file ldap_pvt_thread.h.

Definition at line 37 of file ldap_pvt_thread.h.

Definition at line 38 of file ldap_pvt_thread.h.

#define LDAP_PVT_THREAD_ASSERT_MUTEX_OWNER (   mutex)    ((void) 0)

Definition at line 150 of file ldap_pvt_thread.h.

Definition at line 62 of file ldap_pvt_thread.h.

Definition at line 61 of file ldap_pvt_thread.h.

#define LDAP_PVT_THREAD_EBUSY   EINVAL

Definition at line 201 of file ldap_pvt_thread.h.

#define LDAP_PVT_THREAD_EINVAL   EINVAL

Definition at line 200 of file ldap_pvt_thread.h.

Definition at line 44 of file ldap_pvt_thread.h.

Definition at line 319 of file ldap_pvt_thread.h.

Definition at line 65 of file ldap_pvt_thread.h.

#define LDAP_PVT_THREAD_STACK_SIZE   ( 1 * 1024 * 1024 * sizeof(void *) )

Definition at line 71 of file ldap_pvt_thread.h.


Typedef Documentation

typedef void* data

Definition at line 207 of file ldap_pvt_thread.h.

typedef void* ldap_pvt_thread_start_t LDAP_P((void *ctx, void *arg))

Definition at line 206 of file ldap_pvt_thread.h.

Definition at line 35 of file ldap_pvt_thread.h.

Definition at line 41 of file ldap_pvt_thread.h.

Definition at line 34 of file ldap_pvt_thread.h.

Definition at line 204 of file ldap_pvt_thread.h.

Definition at line 36 of file ldap_pvt_thread.h.

Definition at line 40 of file ldap_pvt_thread.h.


Enumeration Type Documentation

Enumerator:
LDAP_PVT_THREAD_POOL_PARAM_UNKNOWN 
LDAP_PVT_THREAD_POOL_PARAM_MAX 
LDAP_PVT_THREAD_POOL_PARAM_MAX_PENDING 
LDAP_PVT_THREAD_POOL_PARAM_OPEN 
LDAP_PVT_THREAD_POOL_PARAM_STARTING 
LDAP_PVT_THREAD_POOL_PARAM_ACTIVE 
LDAP_PVT_THREAD_POOL_PARAM_PAUSING 
LDAP_PVT_THREAD_POOL_PARAM_PENDING 
LDAP_PVT_THREAD_POOL_PARAM_BACKLOAD 
LDAP_PVT_THREAD_POOL_PARAM_ACTIVE_MAX 
LDAP_PVT_THREAD_POOL_PARAM_PENDING_MAX 
LDAP_PVT_THREAD_POOL_PARAM_BACKLOAD_MAX 
LDAP_PVT_THREAD_POOL_PARAM_STATE 

Definition at line 234 of file ldap_pvt_thread.h.


Function Documentation

ldap_pvt_thread_create LDAP_P ( (ldap_pvt_thread_t *thread, int detach, void *(*start_routine)(void *), void *arg )
ldap_pvt_thread_exit LDAP_P ( (void *retval)  )
ldap_pvt_thread_join LDAP_P ( (ldap_pvt_thread_t thread, void **status)  )
ldap_pvt_thread_kill LDAP_P ( (ldap_pvt_thread_t thread, int signo)  )
ldap_pvt_thread_cond_init LDAP_P ( (ldap_pvt_thread_cond_t *cond)  )
ldap_pvt_thread_cond_wait LDAP_P ( (ldap_pvt_thread_cond_t *cond, ldap_pvt_thread_mutex_t *mutex)  )
ldap_pvt_thread_mutex_init LDAP_P ( (ldap_pvt_thread_mutex_t *mutex)  )
ldap_pvt_thread_key_create LDAP_P ( (ldap_pvt_thread_key_t *keyp)  )
ldap_pvt_thread_key_destroy LDAP_P ( (ldap_pvt_thread_key_t key )
ldap_pvt_thread_key_setdata LDAP_P ( (ldap_pvt_thread_key_t key, void *data )
ldap_pvt_thread_key_getdata LDAP_P ( (ldap_pvt_thread_key_t key, void **data )
ldap_pvt_thread_pool_init LDAP_P ( (ldap_pvt_thread_pool_t *pool_out, int max_threads, int max_pending)  )
ldap_pvt_thread_pool_getkey LDAP_P ( (void *ctx, void *key, void **data, ldap_pvt_thread_pool_keyfree_t **kfree)  )
ldap_pvt_thread_pool_setkey LDAP_P ( (void *ctx, void *key, void *data, ldap_pvt_thread_pool_keyfree_t *kfree, void **olddatap, ldap_pvt_thread_pool_keyfree_t **oldkfreep)  )
typedef void ( ldap_pvt_thread_pool_keyfree_t  )

Variable Documentation

Definition at line 26 of file ldap_pvt_thread.h.