void vortex_connection_unref ( VortexConnection connection,
char const *  who 
)

Decrease vortex connection reference counting.

Allows to decrease connection reference counting. If this reference counting goes under 0 the connection resources will be deallocated.

See also vortex_connection_ref

Parameters
connectionThe connection to operate.
whoWho have decreased the reference. This is a string value used to log which entity have decreased the connection counting.

References vortex_connection_free(), vortex_mutex_lock(), and vortex_mutex_unlock().

Referenced by vortex_connection_close(), vortex_connection_foreach_channel(), vortex_event_unref(), vortex_listener_accept_connection(), and vortex_listener_shutdown().