#include "mhd_options.h"
#include <stdlib.h>
Go to the source code of this file.
◆ MHD_create_named_thread_
◆ MHD_THREAD_START_ROUTINE_
typedef MHD_THRD_RTRN_TYPE_(MHD_THRD_CALL_SPEC_ * MHD_THREAD_START_ROUTINE_) (void *cls) |
Signature of main function for a thread.
- Parameters
-
cls | closure argument for the function |
- Returns
- termination code from the thread
Definition at line 194 of file mhd_threads.h.
◆ MHD_create_thread_()
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_().
- Parameters
-
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 |
- Returns
- non-zero on success; zero otherwise
Create a thread and set the attributes according to our options.
- Parameters
-
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 |
- Returns
- non-zero on success; zero otherwise (with errno set)
Definition at line 180 of file mhd_threads.c.