Method

GumInterceptorflush

Declaration [src]

gboolean
gum_interceptor_flush (
  GumInterceptor* self
)

Description [src]

Completes any teardown still pending from earlier detaches and reverts. When a listener is detached or a replacement reverted the hook stops firing immediately, but the memory backing its instrumentation can only be released once no thread is left executing inside it, so that step is deferred. Call this to force a pass and learn whether it finished. Does nothing while a transaction is open.

Return value

Type: gboolean

TRUE if no teardown remains pending, FALSE if some instrumented code may still be executing.