Lines Matching refs:get
5 // to get a value, we bypass the mutex. Here are some benchmarks showing the
25 // case of the first-to-get thread.
111 /// that makes the first call to 'get'. When the owner calls 'get', it
145 // thread that tries to get a value out of a Pool. However, the current
192 /// pool is returned. That is, calling get, dropping the guard (causing
193 /// the value to go back into the pool) and then calling get again is NOT
194 /// guaranteed to return the same value received in the first get call.
196 pub fn get(&self) -> PoolGuard<'_, T> {
242 /// the guard that's returned by 'get' is dropped, it is put back into the
295 // threads get distinct copies.
303 pool.get().value().borrow_mut().push('x');
307 let guard = pool1.get();
314 let guard = pool2.get();
331 assert_eq!(vec!['a', 'x'], *pool.get().value().borrow());