Lines Matching defs:unsafe
47 pub const unsafe fn new(data: B::Item) -> Self {
62 pub unsafe fn init(&'static self) {
70 unsafe {
129 unsafe impl<T, B> Send for GlobalLockedBy<T, B>
138 unsafe impl<T, B> Sync for GlobalLockedBy<T, B>
164 unsafe { &*self.value.get() }
172 unsafe { &mut *self.value.get() }
198 /// unsafe(uninit) static MY_COUNTER: Mutex<u32> = 0;
210 /// unsafe { MY_COUNTER.init() };
228 /// unsafe(uninit) static MY_MUTEX: Mutex<()> = ();
250 /// unsafe { MY_MUTEX.init() };
262 unsafe(uninit) static $name:ident: $kind:ident<$valuety:ty> = $value:expr;
286 // Defined here to be outside the unsafe scope.
292 unsafe { $crate::sync::lock::GlobalLock::new(init) }