![]() |
Max OS 0.3
|
Defines Spinlock and BlockingLock classes for thread synchronization. More...
#include <common/vector.h>Go to the source code of this file.
Classes | |
| class | MaxOS::common::Spinlock |
| Enables a resource to be used by only one instance at a time through locking and unlocking. More... | |
| class | MaxOS::common::BlockingLock |
| Enables a resource to be used by only one instance at a time through a combination of spinning and queuing. When waiting enqueued, thread will sleep. More... | |
Variables | |
| constexpr uint8_t | MaxOS::common::BLOCKING_FAST_TRY_LIMIT = UINT8_MAX |
| How many attempts to acquire the lock should fail before queueing. | |
Defines Spinlock and BlockingLock classes for thread synchronization.
Definition in file spinlock.h.
|
constexpr |
How many attempts to acquire the lock should fail before queueing.
Definition at line 40 of file spinlock.h.
Referenced by MaxOS::common::BlockingLock::acquire().