Lines Matching refs:mtx
110 mtx: self, in lock()
127 mtx: &'a CMutex<T>, field
134 let sguard = self.mtx.spin_lock.acquire(); in drop()
135 self.mtx.locked.set(false); in drop()
136 if let Some(list_field) = self.mtx.wait_list.next() { in drop()
152 unsafe { &*self.mtx.data.get() } in deref()
159 unsafe { &mut *self.mtx.data.get() } in deref_mut()
196 let mtx: Pin<Arc<CMutex<usize>>> = Arc::pin_init(CMutex::new(0)).unwrap(); in main()
201 let mtx = mtx.clone(); in main()
207 *mtx.lock() += 1; in main()
212 *mtx.lock() += 1; in main()
222 println!("{:?}", &*mtx.lock()); in main()
223 assert_eq!(*mtx.lock(), workload * thread_count * 2); in main()