Skip to main content

root_owned

Function root_owned 

Source
fn root_owned(sexp: SEXP) -> ProtectKey
Expand description

Root an owning handle’s EXTPTRSXP in the main-thread pool.

Must run on R’s main thread with sexp already protected by the caller (the pool may allocate while growing). Both hold inside create_extptr_sexp[_unchecked].