Mojo module
lock
Implements thread synchronization primitives including spin locks.
This module provides low-level locking mechanisms for thread synchronization, including spin locks with blocking behavior and scoped lock guards for automatic lock management. These primitives enable safe concurrent access to shared resources in multi-threaded code.
Structsβ
- β
BlockingScopedLock: A scope adapter for BlockingSpinLock. - β
BlockingSpinLock: A basic locking implementation that uses an integer to represent the owner of the lock. - β
SpinWaiter: A proxy for the C++ runtime's SpinWaiter type.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!