GNU libmicrohttpd 0.9.77
Loading...
Searching...
No Matches
mhd_threads.c File Reference

Implementation for thread functions. More...

#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)   (void)
 
#define MHD_set_cur_thread_name_(n)   (void)
 

Functions

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

Detailed Description

Implementation for thread functions.

Author
Karlson2k (Evgeny Grin)

Definition in file mhd_threads.c.

Macro Definition Documentation

◆ MHD_set_cur_thread_name_

#define MHD_set_cur_thread_name_ (   n)    (void)

Definition at line 46 of file mhd_threads.c.

◆ MHD_set_thread_name_

#define MHD_set_thread_name_ (   t,
 
)    (void)

Definition at line 45 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 184 of file mhd_threads.c.

References NULL, and UINT_MAX.