Lines Matching refs:mtx
106 mtx: self, in lock()
123 mtx: &'a CMutex<T>, field
130 let sguard = self.mtx.spin_lock.acquire(); in drop()
131 self.mtx.locked.set(false); in drop()
132 if let Some(list_field) = self.mtx.wait_list.next() { in drop()
145 unsafe { &*self.mtx.data.get() } in deref()
152 unsafe { &mut *self.mtx.data.get() } in deref_mut()
181 let mtx: Pin<Arc<CMutex<usize>>> = Arc::pin_init(CMutex::new(0)).unwrap(); in main() localVariable
186 let mtx = mtx.clone(); in main() localVariable
192 *mtx.lock() += 1; in main()
197 *mtx.lock() += 1; in main()
207 println!("{:?}", &*mtx.lock()); in main()
208 assert_eq!(*mtx.lock(), workload * thread_count * 2); in main()