Lines Matching defs:mtx
111 mtx: self,
128 mtx: &'a CMutex<T>,
135 let sguard = self.mtx.spin_lock.acquire();
136 self.mtx.locked.set(false);
137 if let Some(list_field) = self.mtx.wait_list.next() {
153 unsafe { &*self.mtx.data.get() }
160 unsafe { &mut *self.mtx.data.get() }
197 let mtx: Pin<Arc<CMutex<usize>>> = Arc::pin_init(CMutex::new(0)).unwrap();
202 let mtx = mtx.clone();
208 *mtx.lock() += 1;
213 *mtx.lock() += 1;
223 println!("{:?}", &*mtx.lock());
224 assert_eq!(*mtx.lock(), workload * thread_count * 2);