Skip to main content

release_unchecked

Function release_unchecked 

Source
pub unsafe fn release_unchecked(cell: SEXP)
Expand description

Release a previously protected SEXP (unchecked version).

Skips thread safety checks for performance-critical paths. Otherwise identical to release.

§Safety

Must be called from the R main thread. Only use in contexts where you’re certain you’re on the main thread. The cell must be a valid cell returned from insert_unchecked and must not have been released already.