Lines Matching refs:mtx
112 PThreadMutexGuard { mtx: self }
117 mtx: &'a PThreadMutex<T>,
123 unsafe { libc::pthread_mutex_unlock(self.mtx.raw.get()) };
131 unsafe { &*self.mtx.data.get() }
137 unsafe { &mut *self.mtx.data.get() }
155 let mtx: Pin<Arc<PThreadMutex<usize>>> = Arc::try_pin_init(PThreadMutex::new(0)).unwrap();
160 let mtx = mtx.clone();
166 *mtx.lock() += 1;
171 *mtx.lock() += 1;
181 println!("{:?}", &*mtx.lock());
182 assert_eq!(*mtx.lock(), workload * thread_count * 2);