Gets the wait queue associated with the given address.
(&self, key: &FutexKey)
| 193 | |
| 194 | /// Gets the wait queue associated with the given address. |
| 195 | pub fn get(&self, key: &FutexKey) -> Option<FutexGuard<'_>> { |
| 196 | let key = key.as_usize(); |
| 197 | let entry = self.0.lock().get(&key).cloned()?; |
| 198 | Some(FutexGuard { |
| 199 | table: self, |
| 200 | key, |
| 201 | inner: entry, |
| 202 | }) |
| 203 | } |
| 204 | |
| 205 | /// Gets the wait queue associated with the given address, or inserts a a |
| 206 | /// new one if it doesn't exist. |
no test coverage detected