axl_bool myqtt_msg_ref ( MyQttMsg msg)

Increases the msg reference counting.

The function isn't thread safe, which means you should call to this function from several threads. In is safe to call this function on every place you receive a msg (second and first level invocation handler).

Once you use this function, call to myqtt_msg_unref to release the reference.

Parameters
msgThe msg to increase its reference counting.
Returns
axl_true if the msg reference counting was increased. Otherwise, axl_false is returned and the reference counting is left untouched.

References myqtt_mutex_lock(), and myqtt_mutex_unlock().