Method
GumInterceptorignore_current_thread
Declaration [src]
void
gum_interceptor_ignore_current_thread (
GumInterceptor* self
)
Description [src]
Temporarily stops the calling thread’s calls into hooked code from triggering listeners. The typical use is to bracket work done internally by an injected payload — for example its own worker threads — so that a user’s hooks observe only the target process’s activity, not the payload’s own calls into the functions it has hooked.
Listeners marked unignorable still fire (see
GumInvocationIgnorability). Note that re-entrancy from within a
listener’s own on_enter/on_leave is already prevented automatically, so
this is not needed for that.
Nestable, and balanced by gum_interceptor_unignore_current_thread().