GNU libmicrohttpd 1.0.0
Loading...
Searching...
No Matches
mhd_threads.c File Reference
#include "mhd_threads.h"
#include <errno.h>
Include dependency graph for mhd_threads.c:

Go to the source code of this file.

Macros

#define MHD_set_thread_name_(t, n)
 
#define MHD_set_cur_thread_name_(n)
 

Functions

int MHD_create_thread_ (MHD_thread_handle_ID_ *thread, size_t stack_size, MHD_THREAD_START_ROUTINE_ start_routine, void *arg)
 

Macro Definition Documentation

◆ MHD_set_cur_thread_name_

#define MHD_set_cur_thread_name_ ( n)
Value:
(void)

Definition at line 44 of file mhd_threads.c.

◆ MHD_set_thread_name_

#define MHD_set_thread_name_ ( t,
n )
Value:
(void)

Definition at line 43 of file mhd_threads.c.

Function Documentation

◆ 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.

Parameters
threadhandle to initialize
stack_sizesize of stack for new thread, 0 for default
start_routinemain function of thread
argargument for start_routine
Returns
non-zero on success; zero otherwise (with errno set)

Definition at line 180 of file mhd_threads.c.

References _MHD_thread_handle_ID_::handle, NULL, and UINT_MAX.