Lines Matching refs:T
30 pub struct Mutex<T> {
32 data: UnsafeCell<T>,
39 pub struct MutexGuard<'a, T: 'a> {
40 lock: &'a Mutex<T>,
43 unsafe impl<T> Sync for Mutex<T> where T: Send {}
45 impl<T> Mutex<T> {
48 pub const fn new(value: T) -> Self { in new()
62 pub fn lock(&self) -> MutexGuard<T> { in lock() argument
92 pub fn try_lock(&self) -> Result<MutexGuard<T>, SystemError> { in try_lock() argument
150 impl<T> Deref for MutexGuard<'_, T> {
151 type Target = T;
159 impl<T> DerefMut for MutexGuard<'_, T> {
166 impl<T> Drop for MutexGuard<'_, T> {