Skip to content
  • Ondřej Surý's avatar
    Add new isc_managers API to simplify <*>mgr create/destroy · a011d422
    Ondřej Surý authored and Evan Hunt's avatar Evan Hunt committed
    Previously, netmgr, taskmgr, timermgr and socketmgr all had their own
    isc_<*>mgr_create() and isc_<*>mgr_destroy() functions.  The new
    isc_managers_create() and isc_managers_destroy() fold all four into a
    single function and makes sure the objects are created and destroy in
    correct order.
    
    Especially now, when taskmgr runs on top of netmgr, the correct order is
    important and when the code was duplicated at many places it's easy to
    make mistake.
    
    The former isc_<*>mgr_create() and isc_<*>mgr_destroy() functions were
    made private and a single call to isc_managers_create() and
    isc_managers_destroy() is required at the program startup / shutdown.
    a011d422