Since this is a callback function, you are free to name it whatever you
want. A pointer to this callback function must be stored in the field
ACTIVE_JOB
::cleanup_fn
.
For conveniece, we will refer to this function as my_cleanup_fn()
.
#include "eventset.h" void my_cleanup_fn(ACTIVE_JOB *acp)
The user-supplied callback function, here called
my_cleanup_fn()
, will be called by the
worker thread whenever the
corresponding ACTIVE_JOB
is about to be removed from its
EVENTSET
.
This function has no return value.