GNU libmicrohttpd
0.9.59
|
Header for platform-independent threads abstraction. More...
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) |
Header for platform-independent threads abstraction.
Provides basic abstraction for threads. Any functions can be implemented as macro on some platforms unless explicitly marked otherwise. Any function argument can be skipped in macro, so avoid variable modification in function parameters.
Definition in file mhd_threads.h.
#define MHD_create_named_thread_ | ( | t, | |
n, | |||
s, | |||
r, | |||
a | |||
) | MHD_create_thread_((t),(s),(r),(a)) |
Definition at line 208 of file mhd_threads.h.
Referenced by internal_add_connection(), and MHD_start_daemon_va().
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 187 of file mhd_threads.h.
int MHD_create_thread_ | ( | MHD_thread_handle_ID_ * | thread, |
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 |
Definition at line 178 of file mhd_threads.c.