Lines Matching defs:mtx
113 PThreadMutexGuard { mtx: self }
118 mtx: &'a PThreadMutex<T>,
124 unsafe { libc::pthread_mutex_unlock(self.mtx.raw.get()) };
132 unsafe { &*self.mtx.data.get() }
138 unsafe { &mut *self.mtx.data.get() }
156 let mtx: Pin<Arc<PThreadMutex<usize>>> = Arc::try_pin_init(PThreadMutex::new(0)).unwrap();
161 let mtx = mtx.clone();
167 *mtx.lock() += 1;
172 *mtx.lock() += 1;
182 println!("{:?}", &*mtx.lock());
183 assert_eq!(*mtx.lock(), workload * thread_count * 2);