axl_bool vortex_channel_ref2 ( VortexChannel channel,
const char *  label 
)

Allows to increase reference counting for the provided channel.

If the reference count for the channel provided reach 0, the channel is deallocated.

The function is thread-safe, internally protected with mutex.

Parameters
channelThe channel to increase its reference counting.
labelA label showed in console debug.
Returns
axl_true if the channel reference counting was increased, otherwise axl_false is returned.

References vortex_mutex_lock(), and vortex_mutex_unlock().

Referenced by vortex_channel_notify_close(), vortex_channel_pool_attach(), vortex_channel_ref(), vortex_channel_wait_reply(), and vortex_xml_rpc_invoke().