axl_bool valvula_is_exiting ( ValvulaCtx ctx)

Allows to check if valvula engine started on the provided context is finishing (a call to valvula_exit_ctx was done).

Parameters
ctxThe context to check if it is exiting.
Returns
axl_true in the case the context is finished, otherwise axl_false is returned. The function also returns axl_false when NULL reference is received.

References valvula_mutex_lock(), and valvula_mutex_unlock().