Apache HTTPD
Functions | Variables
thread.c File Reference
#include "apr.h"
#include "apr_portable.h"
#include "apr_strings.h"
#include "apr_arch_threadproc.h"

Go to the source code of this file.

Functions

apr_status_t apr_threadattr_create (apr_threadattr_t **new, apr_pool_t *pool)
 
apr_status_t apr_threadattr_detach_set (apr_threadattr_t *attr, apr_int32_t on)
 
apr_status_t apr_threadattr_detach_get (apr_threadattr_t *attr)
 
 APR_DECLARE (apr_status_t)
 
static void * dummy_worker (void *opaque)
 
apr_status_t apr_thread_create (apr_thread_t **new, apr_threadattr_t *attr, apr_thread_start_t func, void *data, apr_pool_t *pool)
 
apr_os_thread_t apr_os_thread_current ()
 
int apr_os_thread_equal (apr_os_thread_t tid1, apr_os_thread_t tid2)
 
void apr_thread_yield ()
 
apr_status_t apr_thread_exit (apr_thread_t *thd, apr_status_t retval)
 
apr_status_t apr_thread_join (apr_status_t *retval, apr_thread_t *thd)
 
apr_status_t apr_thread_detach (apr_thread_t *thd)
 
apr_status_t apr_thread_data_get (void **data, const char *key, apr_thread_t *thread)
 
apr_status_t apr_thread_data_set (void *data, const char *key, apr_status_t(*cleanup)(void *), apr_thread_t *thread)
 
 APR_DECLARE (apr_pool_t *)
 

Variables

static int thread_count = 0
 

Function Documentation

◆ apr_os_thread_current()

apr_os_thread_t apr_os_thread_current ( )

Definition at line 142 of file thread.c.

◆ apr_os_thread_equal()

int apr_os_thread_equal ( apr_os_thread_t  tid1,
apr_os_thread_t  tid2 
)

Definition at line 147 of file thread.c.

◆ apr_thread_create()

apr_status_t apr_thread_create ( apr_thread_t **  new,
apr_threadattr_t attr,
apr_thread_start_t  func,
void *  data,
apr_pool_t pool 
)

Definition at line 73 of file thread.c.

◆ apr_thread_data_get()

apr_status_t apr_thread_data_get ( void **  data,
const char key,
apr_thread_t thread 
)

Definition at line 186 of file thread.c.

◆ apr_thread_data_set()

apr_status_t apr_thread_data_set ( void *  data,
const char key,
apr_status_t(*)(void *)  cleanup,
apr_thread_t thread 
)

Definition at line 198 of file thread.c.

◆ apr_thread_detach()

apr_status_t apr_thread_detach ( apr_thread_t thd)

Definition at line 181 of file thread.c.

◆ apr_thread_exit()

apr_status_t apr_thread_exit ( apr_thread_t thd,
apr_status_t  retval 
)

Definition at line 157 of file thread.c.

◆ apr_thread_join()

apr_status_t apr_thread_join ( apr_status_t retval,
apr_thread_t thd 
)

Definition at line 166 of file thread.c.

◆ apr_thread_yield()

void apr_thread_yield ( )

Definition at line 152 of file thread.c.

◆ apr_threadattr_create()

apr_status_t apr_threadattr_create ( apr_threadattr_t **  new,
apr_pool_t pool 
)

Definition at line 24 of file thread.c.

◆ apr_threadattr_detach_get()

apr_status_t apr_threadattr_detach_get ( apr_threadattr_t attr)

Definition at line 47 of file thread.c.

◆ apr_threadattr_detach_set()

apr_status_t apr_threadattr_detach_set ( apr_threadattr_t attr,
apr_int32_t  on 
)

Definition at line 41 of file thread.c.

◆ dummy_worker()

static void * dummy_worker ( void *  opaque)
static

Definition at line 67 of file thread.c.

Variable Documentation

◆ thread_count

int thread_count = 0
static

Definition at line 22 of file thread.c.