Closure.sink

Takes over the initial ownership of a closure. Each closure is initially created in a floating state, which means that the initial reference count is not owned by any caller. g_closure_sink() checks to see if the object is still floating, and if so, unsets the floating state and decreases the reference count. If the closure is not floating, g_closure_sink() does nothing. The reason for the existance of the floating state is to

class Closure
void
sink
()

Meta