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

Class SpinLock

src/SpinLock.h:34–108  ·  view source on GitHub ↗

* This class implements a lock that will never cause an std::thread to block * (i.e. sleep) if the lock is unavailable. Instead the SpinLock will busy-wait * for the lock to become available. The SpinLock is intended to enforce short * periods of mutual exclusion where the lock is not held for very long. These * locks are not recursive; if the same thread tries to lock a SpinLock while * hol

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected