MCPcopy Create free account
hub / github.com/NthTensor/Forte / ScopePtr

Class ScopePtr

src/scope.rs:929–929  ·  view source on GitHub ↗

A reference-counted pointer to a scope. Used to capture a scope pointer in jobs without faking a lifetime. Holding a `ScopePtr` keeps the reference scope from being deallocated.

Source from the content-addressed store, hash-verified

927 // remaining fields are `Send`, so freeing anywhere is sound.
928 //
929 let waker = unsafe { ManuallyDrop::new(Waker::from_raw(raw_waker)) };
930
931 // SAFETY: This was created from an `Arc<Self>` in `into_job_ref`.
932 //

Callers 1

newMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected