Calls a function on each valid glib.Hook and destroys it if the function returns FALSE.
TRUE if hooks which are currently running (e.g. in another thread) are considered valid. If set to FALSE, these are skipped
the function to call for each glib.Hook
data to pass to marshaller
Calls a function on each valid glib.Hook and destroys it if the function returns FALSE.