Shortcut to create a `FutexKey` for the current task's address space.
(address: usize)
| 147 | |
| 148 | /// Shortcut to create a `FutexKey` for the current task's address space. |
| 149 | pub fn new_current(address: usize) -> Self { |
| 150 | Self::new(¤t().as_thread().proc_data.aspace.lock(), address) |
| 151 | } |
| 152 | |
| 153 | fn as_usize(&self) -> usize { |
| 154 | match self { |