Calls a function on each valid #GHook 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 #GHook
data to pass to @marshaller
See Implementation
Calls a function on each valid #GHook and destroys it if the function returns %FALSE.