Skip to main content

R_CONTINUATION_TOKEN

Static R_CONTINUATION_TOKEN 

Source
static R_CONTINUATION_TOKEN: OnceLock<SEXP>
Expand description

Global continuation token for R_UnwindProtect.

Using a single global token instead of thread-local tokens avoids leaking one token per thread that uses with_r_unwind_protect.

ยงSafety

The token is created and preserved once during first use. It remains valid for the entire R session.