The context structure. More...
|mutex on query write pipe |
|struct tube *||qq_pipe|
|the query write pipe |
|mutex on result read pipe |
|struct tube *||rr_pipe|
|the result read pipe |
|mutex for access to env.cfg, finalized and dothread |
|The context has been finalized This is after config when the first resolve is done. More...|
|is bg worker created yet ? |
|pid of bg worker process |
|tid of bg worker thread |
|do threading (instead of forking) for async resolution |
|next thread number for new threads |
|if logfile is overridden |
|what logfile to use instead |
|struct alloc_cache *||alloc_list|
|List of alloc-cache-id points per threadnum for notinuse threads. More...|
|shared caches, and so on |
|struct module_env *||env|
|module env master value |
|module stack |
|struct local_zones *||local_zones|
|local authority zones |
|struct ub_randstate *||seed_rnd|
|random state used to seed new random state structures |
|struct ub_event_base *||event_base|
|event base for event oriented interface |
|struct libworker *||event_worker|
|libworker for event based interface |
|next query number (to try) to use |
|number of async queries outstanding |
|Tree of outstanding queries. More...|
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.
The context has been finalized This is after config when the first resolve is done.
The modules are inited (module-init()) and shared caches created.
|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.