|
Electroneum
|
#include <context.h>

Public Attributes | |
| lock_basic_type | qqpipe_lock |
| struct tube * | qq_pipe |
| lock_basic_type | rrpipe_lock |
| struct tube * | rr_pipe |
| lock_basic_type | cfglock |
| int | finalized |
| int | created_bg |
| pid_t | bg_pid |
| ub_thread_type | bg_tid |
| int | dothread |
| int | thr_next_num |
| int | logfile_override |
| FILE * | log_out |
| struct alloc_cache * | alloc_list |
| struct alloc_cache | superalloc |
| struct module_env * | env |
| struct module_stack | mods |
| struct local_zones * | local_zones |
| struct ub_randstate * | seed_rnd |
| struct ub_event_base * | event_base |
| struct libworker * | event_worker |
| int | next_querynum |
| size_t | num_async |
| rbtree_type | queries |
The context structure
Contains two pipes for async service qq : write queries to the async service pid/tid. rr : read results from the async service pid/tid.
| struct alloc_cache* ub_ctx::alloc_list |
List of alloc-cache-id points per threadnum for notinuse threads. Simply the entire struct alloc_cache with the 'super' member used to link a simply linked list. Reset super member to the superalloc before use.
| ub_thread_type ub_ctx::bg_tid |
| lock_basic_type ub_ctx::cfglock |
| int ub_ctx::dothread |
| struct module_env* ub_ctx::env |
| struct ub_event_base* ub_ctx::event_base |
| struct libworker* ub_ctx::event_worker |
| int ub_ctx::finalized |
| struct local_zones* ub_ctx::local_zones |
| struct module_stack ub_ctx::mods |
| int ub_ctx::next_querynum |
| size_t ub_ctx::num_async |
| lock_basic_type ub_ctx::qqpipe_lock |
| rbtree_type ub_ctx::queries |
| lock_basic_type ub_ctx::rrpipe_lock |
| struct ub_randstate* ub_ctx::seed_rnd |
| struct alloc_cache ub_ctx::superalloc |
| int ub_ctx::thr_next_num |