![]() |
Qore Programming Language 2.3.0
|
RAII helper to push/pop stack location in RuntimeConfig and sync to TLS. More...
#include <RuntimeConfig.h>
Public Member Methods | |
| DLLLOCAL | RuntimeConfigStackHelper (RuntimeConfig &rc, QoreStackLocation *stack_loc) |
| Push a new stack location. | |
| DLLLOCAL | ~RuntimeConfigStackHelper () |
| Pop the stack location and restore previous. | |
RAII helper to push/pop stack location in RuntimeConfig and sync to TLS.
This helper maintains the call stack in both RuntimeConfig (for fast access) and TLS (for cross-thread stack access via get_all_thread_call_stacks()).
Benefits:
| DLLLOCAL RuntimeConfigStackHelper::RuntimeConfigStackHelper | ( | RuntimeConfig & | rc, |
| QoreStackLocation * | stack_loc | ||
| ) |
Push a new stack location.
| rc | RuntimeConfig to update |
| stack_loc | The stack location to push (must outlive this helper) |