MCPcopy Create free account
hub / github.com/AveryOS/avery / try_lock

Method try_lock

kernel/spin/mutex.rs:159–174  ·  view source on GitHub ↗

Tries to lock the mutex. If it is already locked, it will return None. Otherwise it returns a guard within Some.

(&self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

fmtMethod · 0.80
try_lockFunction · 0.80

Calls 1

getMethod · 0.45

Tested by 1

try_lockFunction · 0.64