remove_toggle_ref


Description:

public void remove_toggle_ref (ToggleNotify notify)

Removes a reference added with add_toggle_ref.

The reference count of the object is decreased by one.

Note that if you unref the object on another thread, then notify might still be invoked after remove_toggle_ref, and the object argument might be a dangling pointer. If the object is destroyed on other threads, you must take care of that yourself.

Parameters:

this

a Object

notify

a function to call when this reference is the last reference to the object, or is no longer the last reference.

data

data to pass to notify, or null to match any toggle refs with the notify argument.