Deleted Added
full compact
worker.h (266114) worker.h (276605)
1/*
2 * daemon/worker.h - worker that handles a pending list of requests.
3 *
4 * Copyright (c) 2007, NLnet Labs. All rights reserved.
5 *
6 * This software is open source.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 37 unchanged lines hidden (view full) ---

46#include "libunbound/worker.h"
47#include "util/netevent.h"
48#include "util/locks.h"
49#include "util/alloc.h"
50#include "util/data/msgreply.h"
51#include "util/data/msgparse.h"
52#include "daemon/stats.h"
53#include "util/module.h"
1/*
2 * daemon/worker.h - worker that handles a pending list of requests.
3 *
4 * Copyright (c) 2007, NLnet Labs. All rights reserved.
5 *
6 * This software is open source.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 37 unchanged lines hidden (view full) ---

46#include "libunbound/worker.h"
47#include "util/netevent.h"
48#include "util/locks.h"
49#include "util/alloc.h"
50#include "util/data/msgreply.h"
51#include "util/data/msgparse.h"
52#include "daemon/stats.h"
53#include "util/module.h"
54#include "dnstap/dnstap.h"
54struct listen_dnsport;
55struct outside_network;
56struct config_file;
57struct daemon;
58struct listen_port;
59struct ub_randstate;
60struct regional;
61struct tube;

--- 49 unchanged lines hidden (view full) ---

111 struct alloc_cache alloc;
112 /** per thread statistics */
113 struct server_stats stats;
114 /** thread scratch regional */
115 struct regional* scratchpad;
116
117 /** module environment passed to modules, changed for this thread */
118 struct module_env env;
55struct listen_dnsport;
56struct outside_network;
57struct config_file;
58struct daemon;
59struct listen_port;
60struct ub_randstate;
61struct regional;
62struct tube;

--- 49 unchanged lines hidden (view full) ---

112 struct alloc_cache alloc;
113 /** per thread statistics */
114 struct server_stats stats;
115 /** thread scratch regional */
116 struct regional* scratchpad;
117
118 /** module environment passed to modules, changed for this thread */
119 struct module_env env;
120
121#ifdef USE_DNSTAP
122 /** dnstap environment, changed for this thread */
123 struct dt_env dtenv;
124#endif
119};
120
121/**
122 * Create the worker structure. Bare bones version, zeroed struct,
123 * with backpointers only. Use worker_init on it later.
124 * @param daemon: the daemon that this worker thread is part of.
125 * @param id: the thread number from 0.. numthreads-1.
126 * @param ports: the ports it is allowed to use, array.

--- 41 unchanged lines hidden ---
125};
126
127/**
128 * Create the worker structure. Bare bones version, zeroed struct,
129 * with backpointers only. Use worker_init on it later.
130 * @param daemon: the daemon that this worker thread is part of.
131 * @param id: the thread number from 0.. numthreads-1.
132 * @param ports: the ports it is allowed to use, array.

--- 41 unchanged lines hidden ---