Lines Matching refs:worker
2 * daemon/worker.h - worker that handles a pending list of requests.
39 * This file describes the worker structure that holds a list of
46 #include "libunbound/worker.h"
66 /** worker commands */
68 /** make the worker quit */
82 struct worker {
89 /** pipe, for commands for this worker */
91 /** the event base this worker works with */
97 /** ports to be used by this worker. */
99 /** number of ports for this worker */
112 /** random() table for this worker. */
133 * Create the worker structure. Bare bones version, zeroed struct,
135 * @param daemon: the daemon that this worker thread is part of.
139 * @return: the new worker or NULL on alloc failure.
141 struct worker* worker_create(struct daemon* daemon, int id, int* ports, int n);
144 * Initialize worker.
146 * @param worker: worker to initialize, created with worker_create.
149 * @param do_sigs: if true, worker installs signal handlers.
152 int worker_init(struct worker* worker, struct config_file *cfg,
156 * Make worker work.
158 void worker_work(struct worker* worker);
161 * Delete worker.
163 void worker_delete(struct worker* worker);
166 * Send a command to a worker. Uses blocking writes.
167 * @param worker: worker to send command to.
170 void worker_send_cmd(struct worker* worker, enum worker_commands cmd);
173 * Init worker stats - includes server_stats_init, outside network and mesh.
174 * @param worker: the worker to init
176 void worker_stats_clear(struct worker* worker);