#include <worker.h>
Data Fields | |
int | thread_num |
the thread number (in daemon array). | |
struct daemon * | daemon |
global shared daemon structure | |
ub_thread_t | thr_id |
thread id | |
int | cmd_send_fd |
fd 0 of socketpair, write commands for worker to this one | |
int | cmd_recv_fd |
fd 1 of socketpair, worker listens on this one | |
struct comm_base * | base |
the event base this worker works with | |
struct listen_dnsport * | front |
the frontside listening interface where request events come in | |
struct outside_network * | back |
the backside outside network interface to the auth servers | |
int * | ports |
ports to be used by this worker. | |
int | numports |
number of ports for this worker | |
struct comm_signal * | comsig |
the signal handler | |
struct comm_point * | cmd_com |
commpoint to listen to commands. | |
struct comm_timer * | stat_timer |
timer for statistics | |
size_t | request_size |
number of requests that can be handled by this worker | |
struct ub_randstate * | rndstate |
random() table for this worker. | |
int | need_to_exit |
do we need to restart or quit (on signal) | |
struct alloc_cache | alloc |
allocation cache for this thread | |
struct server_stats | stats |
per thread statistics | |
struct regional * | scratchpad |
thread scratch regional | |
struct module_env | env |
module environment passed to modules, changed for this thread |
Holds globally visible information.
the thread number (in daemon array).
First in struct for debug.
Referenced by thread_start(), worker_create(), worker_delete(), worker_init(), and worker_stat_timer_cb().
int* worker::ports |
struct comm_point* worker::cmd_com [read] |
struct ub_randstate* worker::rndstate [read] |