Branch: Tag:

2020-12-11

2020-12-11 16:18:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Debug: Added provider hook "handler-done-hook".

This hook is called every time a handler has completed a task.
As is is only intended to be used for debugging purposes, it is
only enabled when the server has been started with --debug.

786:    }   #endif    + #ifdef DEBUG +  foreach(configurations; Configuration conf) { +  foreach(conf->get_providers("handler-done-hook"), RoxenModule mod) { +  // NB: No need to catch here. Any errors will be get caught +  // and reported below. +  mod->handler_done_hook && mod->handler_done_hook(h); +  } +  } + #endif +     h=0;    busy_threads--;    thread_flagged_as_busy = 0;