Max OS 0.3
Loading...
Searching...
No Matches
block.h File Reference

Defines BlockingLock class for thread synchronization. More...

#include <libcommon/vector.h>

Go to the source code of this file.

Classes

class  MaxOS::processes::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::processes::BLOCKING_FAST_TRY_LIMIT = UINT8_MAX
 How many attempts to acquire the lock should fail before queueing.
 

Detailed Description

Defines BlockingLock class for thread synchronization.

Date
19th January 2026
Author
Max Tyson

Definition in file block.h.

Variable Documentation

◆ BLOCKING_FAST_TRY_LIMIT

constexpr uint8_t MaxOS::processes::BLOCKING_FAST_TRY_LIMIT = UINT8_MAX
constexpr

How many attempts to acquire the lock should fail before queueing.

Definition at line 17 of file block.h.

Referenced by MaxOS::processes::BlockingLock::acquire().