GNU libmicrohttpd  0.9.72
daemon_destroy.c File Reference

main functions to destroy a daemon More...

Include dependency graph for daemon_destroy.c:

Go to the source code of this file.

Functions

static void stop_workers (struct MHD_Daemon *daemon)
 
void MHD_daemon_destroy (struct MHD_Daemon *daemon)
 

Detailed Description

main functions to destroy a daemon

Author
Christian Grothoff

Definition in file daemon_destroy.c.

Function Documentation

◆ stop_workers()

static void stop_workers ( struct MHD_Daemon daemon)
static

Stop all worker threads from the worker pool.

Parameters
daemonmaster daemon controlling the workers

Definition at line 36 of file daemon_destroy.c.

References _, fd, MHD_Daemon::itc, MHD_Daemon::listen_socket, mhd_assert, MHD_daemon_destroy(), MHD_INVALID_SOCKET, MHD_ITC_IS_INVALID_, MHD_PANIC, NULL, MHD_Daemon::shutdown, MHD_Daemon::threading_mode, MHD_Daemon::was_quiesced, MHD_Daemon::worker_pool, and MHD_Daemon::worker_pool_size.

Referenced by MHD_daemon_destroy().

Here is the call graph for this function:
Here is the caller graph for this function: