int myqtt_ctx_ref_count ( MyQttCtx ctx)

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

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

References myqtt_mutex_lock(), and myqtt_mutex_unlock().

Referenced by myqtt_listener_unlock(), and myqttd_ctx_free().