OpenDNSSEC-signer  1.4.1
Data Fields
worker_struct Struct Reference

#include <worker.h>

Collaboration diagram for worker_struct:
Collaboration graph
[legend]

Data Fields

allocator_typeallocator
 
int thread_num
 
ods_thread_type thread_id
 
void * engine
 
task_typetask
 
task_id working_with
 
worker_id type
 
time_t clock_in
 
size_t jobs_appointed
 
size_t jobs_completed
 
size_t jobs_failed
 
cond_basic_type worker_alarm
 
lock_basic_type worker_lock
 
unsigned sleeping: 1
 
unsigned waiting: 1
 
unsigned need_to_exit: 1
 

Detailed Description

Definition at line 51 of file worker.h.

Field Documentation

allocator_type* worker_struct::allocator

Definition at line 52 of file worker.h.

Referenced by worker_cleanup(), and worker_create().

time_t worker_struct::clock_in

Definition at line 59 of file worker.h.

Referenced by worker_create().

void* worker_struct::engine

Definition at line 55 of file worker.h.

Referenced by engine_start_drudgers(), engine_stop_drudgers(), and worker_create().

size_t worker_struct::jobs_appointed

Definition at line 60 of file worker.h.

Referenced by worker_create(), and worker_sleep_unless().

size_t worker_struct::jobs_completed

Definition at line 61 of file worker.h.

Referenced by worker_create(), and worker_sleep_unless().

size_t worker_struct::jobs_failed

Definition at line 62 of file worker.h.

Referenced by worker_create(), and worker_sleep_unless().

unsigned worker_struct::need_to_exit
unsigned worker_struct::sleeping

Definition at line 65 of file worker.h.

Referenced by worker_create(), worker_sleep(), worker_sleep_unless(), and worker_wakeup().

task_type* worker_struct::task

Definition at line 56 of file worker.h.

Referenced by worker_create().

ods_thread_type worker_struct::thread_id

Definition at line 54 of file worker.h.

Referenced by engine_start_drudgers(), and engine_stop_drudgers().

int worker_struct::thread_num

Definition at line 53 of file worker.h.

Referenced by worker_create(), worker_sleep_unless(), and worker_wakeup().

worker_id worker_struct::type

Definition at line 58 of file worker.h.

Referenced by worker_create(), worker_sleep_unless(), worker_start(), and worker_wakeup().

unsigned worker_struct::waiting

Definition at line 66 of file worker.h.

Referenced by worker_create(), and worker_wakeup().

cond_basic_type worker_struct::worker_alarm
lock_basic_type worker_struct::worker_lock
task_id worker_struct::working_with

Definition at line 57 of file worker.h.

Referenced by worker_create().


The documentation for this struct was generated from the following file: