Lines Matching full:use
8 use crate::prelude::*;
9 use crate::types::Opaque;
10 use pin_init;
19 pub use arc::{Arc, ArcBorrow, UniqueArc};
20 pub use condvar::{new_condvar, CondVar, CondVarTimeoutResult};
21 pub use lock::global::{global_lock, GlobalGuard, GlobalLock, GlobalLockBackend, GlobalLockedBy};
22 pub use lock::mutex::{new_mutex, Mutex, MutexGuard};
23 pub use lock::spinlock::{new_spinlock, SpinLock, SpinLockGuard};
24 pub use locked_by::LockedBy;
44 /// # use kernel::c_str;
45 /// # use kernel::alloc::KBox;
46 /// # use kernel::types::ForeignOwnable;
47 /// # use kernel::sync::{LockClassKey, SpinLock};
48 /// # use pin_init::stack_pin_init;
63 /// // SAFETY: We dropped `num`, the only use of the key, so the result of the previous
64 /// // `borrow` has also been dropped. Thus, it's safe to use from_foreign.