FreeRTOS C-Addons  1.1.0
C-Addon functionality to FreeRTOS
Data Fields
RWLockPreferWriter_t_ Struct Reference

Data Fields

enum ReaderWriterLockType Type
 
int ReadCount
 
SemaphoreHandle_t ReadLock
 
SemaphoreHandle_t ResourceLock
 
int WriteCount
 
SemaphoreHandle_t WriteLock
 
SemaphoreHandle_t BlockReadersLock
 

Detailed Description

Definition at line 83 of file read_write_lock.c.

Field Documentation

◆ BlockReadersLock

SemaphoreHandle_t BlockReadersLock

Lock to stop reader threads from starving a Writer.

Definition at line 126 of file read_write_lock.c.

◆ ReadCount

int ReadCount

How many active readers are there.

Definition at line 94 of file read_write_lock.c.

◆ ReadLock

SemaphoreHandle_t ReadLock

Protect ReadCount.

Definition at line 99 of file read_write_lock.c.

◆ ResourceLock

SemaphoreHandle_t ResourceLock

Protect this resource from multiple writer access, or from Reader access when a writer is changing something.

Definition at line 105 of file read_write_lock.c.

◆ Type

Definition at line 89 of file read_write_lock.c.

◆ WriteCount

int WriteCount

Number of Writers waiting for the Resource Lock, including any current Writer already holdign it.

Definition at line 116 of file read_write_lock.c.

◆ WriteLock

SemaphoreHandle_t WriteLock

Protect WriteCount.

Definition at line 121 of file read_write_lock.c.


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