EtcPal  HEAD (unstable)
ETC Platform Abstraction Layer (EtcPal)
View other versions:
rwlock (Read-Write Locks)

Overview

C++ utilities for the rwlock (Read-Write Locks) module.

Provides a C++ wrappers the for EtcPal read-write lock type. Also provides RAII guard classes for this type (ReadGuard and WriteGuard), which should be the primary constructs used to interact with the read-write lock class.

This class is similar to std::shared_mutex, with the key advantage that they will work on any threaded platform that EtcPal is ported for, including the embedded RTOS platforms. If your application or library does not need to run on these platforms, consider using std::shared_mutex instead.

Data Structures

class  RwLock
 A wrapper class for the EtcPal read-write lock type. More...
 
class  ReadGuard
 Read lock guard around a read-write lock. More...
 
class  WriteGuard
 Write lock guard around a read-write lock. More...