Nebula
Loading...
Searching...
No Matches
Posix::PosixReadWriteLock Class Reference

#include <posixreadwritelock.h>

Public Member Functions

 PosixReadWriteLock ()
 Constructor.
 
 ~PosixReadWriteLock ()
 Destructor.
 
void LockRead ()
 Lock for read.
 
void LockWrite ()
 Lock for write.
 
void UnlockRead ()
 Release read.
 
void UnlockWrite ()
 Release write.
 

Private Attributes

int32_t readCounter = 0
 
int32_t writeCounter = 0
 
pthread_rwlock_t lock
 
Threading::ThreadId lockingThread = 0
 

Constructor & Destructor Documentation

◆ PosixReadWriteLock()

Posix::PosixReadWriteLock::PosixReadWriteLock ( )

Constructor.

◆ ~PosixReadWriteLock()

Posix::PosixReadWriteLock::~PosixReadWriteLock ( )

Destructor.

Member Function Documentation

◆ LockRead()

void Posix::PosixReadWriteLock::LockRead ( )

Lock for read.

◆ LockWrite()

void Posix::PosixReadWriteLock::LockWrite ( )

Lock for write.

◆ UnlockRead()

void Posix::PosixReadWriteLock::UnlockRead ( )

Release read.

◆ UnlockWrite()

void Posix::PosixReadWriteLock::UnlockWrite ( )

Release write.

Member Data Documentation

◆ lock

pthread_rwlock_t Posix::PosixReadWriteLock::lock
private

◆ lockingThread

Threading::ThreadId Posix::PosixReadWriteLock::lockingThread = 0
private

◆ readCounter

int32_t Posix::PosixReadWriteLock::readCounter = 0
private

◆ writeCounter

int32_t Posix::PosixReadWriteLock::writeCounter = 0
private

The documentation for this class was generated from the following files: