int nopoll_msg_ref_count ( noPollMsg msg)

Allows to get current reference counting for the provided message.

Parameters
msgThe message for which we are requesting for the reference counting.
Returns
Reference counting or -1 if it fails (returned when msg reference received is NULL).

References nopoll_mutex_lock(), and nopoll_mutex_unlock().