R_RTOS  0.1
DistributedRealTimeOperatingSystemfortheARMCortexMArchitecture
mntr Struct Reference

Monitor for synchronized access. More...

#include <R_RTOS_monitor.h>

Data Fields

TskID mntrWaitrsQTskIDEnd
 

TskID of the task containing the start of the waiters list


 
MntrState curState
 

TskID of the task containing the end of the waiters list


 
mntrRfrcCnt refCntr
 

Current (access) state of the monitor


 

Detailed Description

Monitor for synchronized access.

The monitor structure keeps track of its wait queue, its state and a reference counter that keeps track of how many instances currently have access to the monitor. If the value of the reference counter reaches zero it is considered to be free and therefore the wait queue is queried for currently blocked instances. If there are no elements in the wait queue, the monitor's state is set to MNTR_NOOP.


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