Searched defs:StaticKey (Results 1 – 4 of 4) sorted by relevance
82 pub struct StaticKey { struct88 next: AtomicPtr<StaticKey>, argument95 impl StaticKey { impl97 pub const fn new(dtor: Option<Dtor>) -> StaticKey { in new()178 unsafe impl Send for StaticKey {} implementation179 unsafe impl Sync for StaticKey {} implementation206 unsafe fn register_dtor(key: &'static StaticKey) { in register_dtor()209 let this = <*const StaticKey>::cast_mut(key); in register_dtor() constant
83 pub struct StaticKey { struct96 pub const INIT: StaticKey = StaticKey::new(None); argument108 impl StaticKey { impl110 pub const fn new(dtor: Option<unsafe extern "C" fn(*mut u8)>) -> StaticKey { in new()