OpenDNSSEC-signer
1.3.16
|
Go to the source code of this file.
Typedefs | |
typedef int | lock_basic_type |
typedef pid_t | ods_thread_type |
Functions | |
void | ods_thr_fork_create (ods_thread_type *thr, void *(*func)(void *), void *arg) |
void | ods_thr_fork_wait (ods_thread_type thread) |
void | ods_thread_blocksigs (void) |
#define lock_basic_alarm | ( | cond | ) | /* nop */ |
Definition at line 159 of file locks.h.
Referenced by signal_handler(), worker_notify(), and worker_wakeup().
#define lock_basic_broadcast | ( | cond | ) | /* nop */ |
Definition at line 160 of file locks.h.
Referenced by fifoq_pop(), fifoq_push(), and worker_notify_all().
#define lock_basic_destroy | ( | lock | ) | /* nop */ |
Definition at line 153 of file locks.h.
Referenced by engine_cleanup(), fifoq_cleanup(), schedule_cleanup(), stats_cleanup(), worker_cleanup(), zone_cleanup(), zonelist_cleanup(), and zonelist_free().
#define lock_basic_init | ( | lock | ) | /* nop */ |
Definition at line 152 of file locks.h.
Referenced by fifoq_create(), schedule_create(), stats_create(), worker_create(), zone_create(), and zonelist_create().
#define lock_basic_lock | ( | lock | ) | /* nop */ |
Definition at line 154 of file locks.h.
Referenced by engine_start(), engine_update_zones(), rrset_queue(), rrset_sign(), signal_handler(), tools_audit(), tools_input(), tools_nsecify(), tools_output(), worker_create(), worker_notify(), worker_notify_all(), worker_sleep(), worker_sleep_unless(), worker_wait_timeout(), worker_wakeup(), and zone_recover().
#define lock_basic_off | ( | cond | ) | /* nop */ |
Definition at line 161 of file locks.h.
Referenced by engine_cleanup(), fifoq_cleanup(), and worker_cleanup().
#define lock_basic_set | ( | cond | ) | /* nop */ |
Definition at line 157 of file locks.h.
Referenced by fifoq_create(), and worker_create().
#define lock_basic_sleep | ( | cond, | |
lock, | |||
sleep | |||
) | /* nop */ |
Definition at line 158 of file locks.h.
Referenced by rrset_queue(), worker_sleep(), worker_sleep_unless(), worker_wait_timeout(), and worker_wait_timeout_locked().
#define lock_basic_unlock | ( | lock | ) | /* nop */ |
Definition at line 155 of file locks.h.
Referenced by engine_start(), engine_update_zones(), rrset_queue(), rrset_sign(), signal_handler(), tools_audit(), tools_input(), tools_nsecify(), tools_output(), worker_create(), worker_notify(), worker_notify_all(), worker_sleep(), worker_sleep_unless(), worker_wait_timeout(), worker_wakeup(), and zone_recover().
#define LOCKED_Q_WORKER | ( | x | ) | (300+x) |
Definition at line 92 of file locks.h.
Referenced by rrset_queue().
#define LOCKED_SCHEDULE_ENGINE_ADDZONE 6 |
Definition at line 48 of file locks.h.
Referenced by engine_update_zones().
#define LOCKED_SCHEDULE_ENGINE_DELZONE 5 |
Definition at line 47 of file locks.h.
Referenced by engine_update_zones().
#define LOCKED_SCHEDULE_ENGINE_RESCHEDULE 7 |
Definition at line 49 of file locks.h.
Referenced by engine_update_zones().
#define LOCKED_SIGNAL_SIGHUP 9 |
Definition at line 51 of file locks.h.
Referenced by signal_handler().
#define LOCKED_SIGNAL_SIGTERM 10 |
Definition at line 52 of file locks.h.
Referenced by signal_handler().
#define LOCKED_SLEEP_WORKER | ( | x | ) | (1000+x) |
Definition at line 99 of file locks.h.
Referenced by rrset_queue().
#define LOCKED_STATS_RRSET_SIGN 23 |
Definition at line 65 of file locks.h.
Referenced by rrset_sign().
#define LOCKED_STATS_TOOLS_AUDIT_START 28 |
Definition at line 70 of file locks.h.
Referenced by tools_audit().
#define LOCKED_STATS_TOOLS_AUDIT_STOP 29 |
Definition at line 71 of file locks.h.
Referenced by tools_audit().
#define LOCKED_STATS_TOOLS_INPUT_START 24 |
Definition at line 66 of file locks.h.
Referenced by tools_input().
#define LOCKED_STATS_TOOLS_INPUT_STOP 25 |
Definition at line 67 of file locks.h.
Referenced by tools_input().
#define LOCKED_STATS_TOOLS_LOG 32 |
Definition at line 74 of file locks.h.
Referenced by tools_output().
#define LOCKED_STATS_TOOLS_NSECIFY_START 26 |
Definition at line 68 of file locks.h.
Referenced by tools_nsecify().
#define LOCKED_STATS_TOOLS_NSECIFY_STOP 27 |
Definition at line 69 of file locks.h.
Referenced by tools_nsecify().
#define LOCKED_STATS_TOOLS_OUTPUT_START 30 |
Definition at line 72 of file locks.h.
Referenced by tools_output().
#define LOCKED_STATS_ZONE_RECOVER 33 |
Definition at line 75 of file locks.h.
Referenced by zone_recover().
#define LOCKED_WORKER_INIT 50 |
Definition at line 83 of file locks.h.
Referenced by worker_create().
#define LOCKED_WORKER_RRSET | ( | x | ) | (600+x) |
Definition at line 95 of file locks.h.
Referenced by rrset_queue().
#define LOCKED_WORKER_SLEEP 52 |
Definition at line 85 of file locks.h.
Referenced by worker_sleep().
#define LOCKED_WORKER_SLEEP_UNLESS 53 |
Definition at line 86 of file locks.h.
Referenced by worker_sleep_unless().
#define LOCKED_WORKER_WAKEUP 54 |
Definition at line 87 of file locks.h.
Referenced by worker_wakeup().
#define LOCKED_ZL_ENGINE_UPDATEZONES 60 |
Definition at line 89 of file locks.h.
Referenced by engine_update_zones().
#define LOCKED_ZONE_ENGINE_ADDZONE 38 |
Definition at line 80 of file locks.h.
Referenced by engine_update_zones().
#define LOCKED_ZONE_ENGINE_DELZONE 37 |
Definition at line 79 of file locks.h.
Referenced by engine_update_zones().
#define LOCKED_ZONE_ENGINE_UPDZONE 39 |
Definition at line 81 of file locks.h.
Referenced by engine_update_zones().
#define LOCKRET | ( | func | ) |
#define ods_thread_create | ( | thr, | |
func, | |||
arg | |||
) | ods_thr_fork_create(thr, func, arg) |
Definition at line 164 of file locks.h.
Referenced by cmdhandler_start(), and engine_start_drudgers().
#define ods_thread_detach | ( | thr | ) | /* nop */ |
Definition at line 165 of file locks.h.
Referenced by cmdhandler_start().
#define ods_thread_join | ( | thr | ) | ods_thr_fork_wait(thr) |
Definition at line 167 of file locks.h.
Referenced by engine_stop_drudgers().
typedef int lock_basic_type |
typedef pid_t ods_thread_type |
void ods_thr_fork_create | ( | ods_thread_type * | thr, |
void *(*)(void *) | func, | ||
void * | arg | ||
) |
No threading available: fork a new process. This means no shared data structure, and no locking. Only the main thread ever returns. Exits on errors.
thr,: | the location where to store the thread-id. |
func,: | function body of the thread. Return value of func is lost. |
arg,: | user argument to func. |
Definition at line 65 of file locks.c.
References ods_fatal_exit().
void ods_thr_fork_wait | ( | ods_thread_type | thread | ) |
There is no threading. Wait for a process to terminate. Note that ub_thread_t is defined as pid_t.
thread,: | the process id to wait for. |
Definition at line 90 of file locks.c.
References ods_log_error(), and ods_log_warning().
void ods_thread_blocksigs | ( | void | ) |
Definition at line 150 of file locks.c.
References ods_fatal_exit().