Calls a function on each valid #GHook.
%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.