GNU libmicrohttpd 1.0.1
|
Go to the source code of this file.
Macros | |
#define | MHD_create_named_thread_(t, n, s, r, a) MHD_create_thread_ ((t),(s),(r),(a)) |
Typedefs | |
typedef MHD_THRD_RTRN_TYPE_(MHD_THRD_CALL_SPEC_ * | MHD_THREAD_START_ROUTINE_) (void *cls) |
Functions | |
int | MHD_create_thread_ (MHD_thread_handle_ID_ *thread, size_t stack_size, MHD_THREAD_START_ROUTINE_ start_routine, void *arg) |
#define MHD_create_named_thread_ | ( | t, | |
n, | |||
s, | |||
r, | |||
a ) MHD_create_thread_ ((t),(s),(r),(a)) |
Definition at line 216 of file mhd_threads.h.
Referenced by internal_add_connection(), MHD_daemon_start(), MHD_start_daemon_va(), new_connection_process_(), and setup_thread_pool().
typedef MHD_THRD_RTRN_TYPE_(MHD_THRD_CALL_SPEC_ * MHD_THREAD_START_ROUTINE_) (void *cls) |
Signature of main function for a thread.
cls | closure argument for the function |
Definition at line 194 of file mhd_threads.h.
int MHD_create_thread_ | ( | MHD_thread_handle_ID_ * | handle_id, |
size_t | stack_size, | ||
MHD_THREAD_START_ROUTINE_ | start_routine, | ||
void * | arg ) |
Create a thread and set the attributes according to our options.
If thread is created, thread handle must be freed by MHD_join_thread_().
thread | handle to initialize |
stack_size | size of stack for new thread, 0 for default |
start_routine | main function of thread |
arg | argument for start_routine |
Create a thread and set the attributes according to our options.
thread | handle to initialize |
stack_size | size of stack for new thread, 0 for default |
start_routine | main function of thread |
arg | argument for start_routine |
Create a thread and set the attributes according to our options.
If thread is created, thread handle must be freed by MHD_join_thread_().
handle_id | handle to initialise |
stack_size | size of stack for new thread, 0 for default |
start_routine | main function of thread |
arg | argument for start_routine |
Definition at line 180 of file mhd_threads.c.