void valvula_thread_pool_set_cleanup_func ( ValvulaCtx ctx,
ValvulaThreadCleanup  func 
)

Allows to configure a cleanup function that is called just after a thread from the thread pool is finished.