void vortex_channel_unref2 ( VortexChannel channel,
const char *  label 

Decrease in one unit the reference count for the channel provided.

In the channel reference count reach 0 value, the channel is deallocated, automatically calling to vortex_channel_free.

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

channelThe channel to decrease its reference counting.
labelA label showed in console debug.

References vortex_channel_free(), vortex_channel_get_ctx(), vortex_mutex_lock(), and vortex_mutex_unlock().

Referenced by vortex_channel_notify_close(), vortex_channel_pool_deattach(), vortex_channel_unref(), vortex_channel_wait_reply(), vortex_event_unref(), and vortex_payload_feeder_free().