• Vladimír Čunát's avatar
    worker: convert to a proper singleton · a550a150
    Vladimír Čunát authored
    On many places we've been assuming that there's only a single worker,
    but we still often didn't utilize the property well.  To get the pointer
    we used various ways, all even untyped:
     - __worker global variable in lua
     - uv_default_loop()->data
     - kr_request::daemon_context
    
    Now we instead simply define a global typed pointer the_worker.
    
    Nitpick: also worker_{init,deinit}() are reordered to correspond
    to the order of the fields, etc.
    a550a150
Name
Last commit
Last update
..
cache Loading commit data...
cookies Loading commit data...
dnssec Loading commit data...
generic Loading commit data...
layer Loading commit data...
README.rst Loading commit data...
defines.h Loading commit data...
dnssec.c Loading commit data...
dnssec.h Loading commit data...
layer.h Loading commit data...
meson.build Loading commit data...
module.c Loading commit data...
module.h Loading commit data...
nsrep.c Loading commit data...
nsrep.h Loading commit data...
resolve.c Loading commit data...
resolve.h Loading commit data...
rplan.c Loading commit data...
rplan.h Loading commit data...
test_module.c Loading commit data...
test_rplan.c Loading commit data...
test_utils.c Loading commit data...
test_zonecut.c Loading commit data...
utils.c Loading commit data...
utils.h Loading commit data...
zonecut.c Loading commit data...
zonecut.h Loading commit data...