folly::pushAsyncStackFrameCallerCallee

Push the 'callee' frame onto the current thread's async stack, deactivating the 'caller' frame and setting up the 'caller' to be the parent-frame of the 'callee'.

Synopsis

Declared in <folly/tracing/AsyncStack.h>

void
pushAsyncStackFrameCallerCallee(
    folly::AsyncStackFrame& callerFrame,
    folly::AsyncStackFrame& calleeFrame) noexcept;

Description

The 'caller' frame must be the current thread's active frame.

After this call, the 'callee' frame will be the current thread's active frame.

This is typically used when one async operation is about to transfer execution to a child async operation. e.g. via a coroutine symmetric transfer.

Parameters

NameDescription
callerFrameThe currently active caller frame.
calleeFrameThe callee frame to push and make active.