GNU libmicrohttpd 1.0.0
|
Implementation for thread functions. More...
Go to the source code of this file.
Macros | |
#define | MHD_set_thread_name_(t, n) (void) |
#define | MHD_set_cur_thread_name_(n) (void) |
Functions | |
int | MHD_create_thread_ (MHD_thread_handle_ID_ *handle_id, size_t stack_size, MHD_THREAD_START_ROUTINE_ start_routine, void *arg) |
Implementation for thread functions.
Definition in file mhd_threads.c.
#define MHD_set_cur_thread_name_ | ( | n | ) | (void) |
Definition at line 47 of file mhd_threads.c.
#define MHD_set_thread_name_ | ( | t, | |
n | |||
) | (void) |
Definition at line 46 of file mhd_threads.c.
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_().
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 187 of file mhd_threads.c.
References mhd_assert, MHD_thread_handle_ID_is_valid_handle_, MHD_thread_handle_ID_set_invalid_, MHD_thread_handle_ID_set_native_handle_, NULL, and UINT_MAX.