PatchworkOS
Loading...
Searching...
No Matches
rwmutex_t Struct Reference

Read-Write Mutex structure. More...

#include <rwmutex.h>

Data Fields

uint16_t activeReaders
 
uint16_t waitingWriters
 
wait_queue_t readerQueue
 
wait_queue_t writerQueue
 
bool hasWriter
 
lock_t lock
 

Detailed Description

Read-Write Mutex structure.

A Read-Write Mutex allows one only writer or multiple readers to access a shared resource at the same time. This implementation prioritizes writers over readers and does not support recursive locking.

Definition at line 41 of file rwmutex.h.

Field Documentation

◆ activeReaders

◆ hasWriter

◆ lock

◆ readerQueue

wait_queue_t rwmutex_t::readerQueue

◆ waitingWriters

◆ writerQueue

wait_queue_t rwmutex_t::writerQueue

The documentation for this struct was generated from the following file: