MCPcopy Create free account
hub / github.com/PlatformLab/Homa / try_lock

Method try_lock

src/SpinLock.h:78–83  ·  view source on GitHub ↗

* Try to acquire the SpinLock; does not block the thread and returns * immediately. * * @return * True if the lock was successfully acquired, false if it was already * owned by some other thread. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64