|
Tor 0.4.9.8
|
Data Fields | |
| int | index |
| struct threadpool_t * | in_pool |
| void * | state |
| replyqueue_t * | reply_queue |
| unsigned | generation |
| int32_t | lower_priority_chance |
A worker thread represents a single thread in a thread pool.
Definition at line 137 of file workqueue.c.
| unsigned generation |
The current update generation of this thread
Definition at line 148 of file workqueue.c.
Referenced by worker_thread_has_work(), and worker_thread_main().
| struct threadpool_t* in_pool |
The pool this thread is a part of.
Definition at line 141 of file workqueue.c.
Referenced by worker_thread_extract_next_work(), worker_thread_has_work(), worker_thread_main(), and workerthread_new().
| int index |
Which thread it this? In range 0..in_pool->n_threads-1
Definition at line 139 of file workqueue.c.
Referenced by threadpool_start_threads(), and worker_thread_main().
| int32_t lower_priority_chance |
One over the probability of taking work from a lower-priority queue.
Definition at line 150 of file workqueue.c.
Referenced by worker_thread_extract_next_work(), and workerthread_new().
| replyqueue_t* reply_queue |
Reply queue to which we pass our results.
Definition at line 146 of file workqueue.c.
Referenced by worker_thread_main(), and workerthread_new().
| void* state |
User-supplied state field that we pass to the worker functions of each work item.
Definition at line 144 of file workqueue.c.
Referenced by worker_thread_main(), and workerthread_new().