int valvula_ctx_ref_count ( ValvulaCtx ctx)

Allows to get current reference counting state from provided valvula context.

Parameters
ctxThe valvula context to get reference counting
Returns
Reference counting or -1 if it fails.

References valvula_mutex_lock(), and valvula_mutex_unlock().