Install (or, with all‐null arguments, remove) the keep‐alive object tracing hooks.

Synopsis

Declared in <folly/Executor.h>

bool
setKeepAliveObjTraceHooks(
    /* implementation-defined */ acquire,
    /* implementation-defined */ release,
    /* implementation-defined */ move);

Description

Not synchronized with in‐flight keep‐alive operations: install once at startup, before the threads being traced exist.

Return Value

false when FOLLY_ENABLE_KEEPALIVE_OBJ_TRACE is unset: the hooks are stored, but no trace point will ever call them.

Parameters

Name

Description

acquire

Hook fired when a counted keep‐alive is acquired.

release

Hook fired when a counted keep‐alive is released.

move

Hook fired when a keep‐alive object is moved.

Created with MrDocs