MCPcopy Create free account
hub / github.com/Starry-OS/StarryOS / new_current

Method new_current

core/src/futex.rs:149–151  ·  view source on GitHub ↗

Shortcut to create a `FutexKey` for the current task's address space.

(address: usize)

Source from the content-addressed store, hash-verified

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(&current().as_thread().proc_data.aspace.lock(), address)
151 }
152
153 fn as_usize(&self) -> usize {
154 match self {

Callers

nothing calls this directly

Calls 1

as_threadMethod · 0.80

Tested by

no test coverage detected