Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FPThreadsRWLock Class Reference

#include <PThreadRWLock.h>

Public Member Functions

 FPThreadsRWLock (const FPThreadsRWLock &)=delete
 
FPThreadsRWLockoperator= (const FPThreadsRWLock &)=delete
 
 FPThreadsRWLock ()
 
 ~FPThreadsRWLock ()
 
void ReadLock ()
 
void WriteLock ()
 
bool TryReadLock ()
 
bool TryWriteLock ()
 
void ReadUnlock ()
 
void WriteUnlock ()
 

Private Attributes

pthread_rwlock_t Mutex
 

Detailed Description

FPThreadsRWLock - Read/Write Mutex

  • Provides non-recursive Read/Write (or shared-exclusive) access.

Definition at line 16 of file PThreadRWLock.h.

Constructor & Destructor Documentation

◆ FPThreadsRWLock() [1/2]

FPThreadsRWLock::FPThreadsRWLock ( const FPThreadsRWLock & )
delete

◆ FPThreadsRWLock() [2/2]

FPThreadsRWLock::FPThreadsRWLock ( )
inline

Definition at line 22 of file PThreadRWLock.h.

◆ ~FPThreadsRWLock()

FPThreadsRWLock::~FPThreadsRWLock ( )
inline

Definition at line 28 of file PThreadRWLock.h.

Member Function Documentation

◆ operator=()

FPThreadsRWLock & FPThreadsRWLock::operator= ( const FPThreadsRWLock & )
delete

◆ ReadLock()

void FPThreadsRWLock::ReadLock ( )
inline

Definition at line 34 of file PThreadRWLock.h.

◆ ReadUnlock()

void FPThreadsRWLock::ReadUnlock ( )
inline

Definition at line 58 of file PThreadRWLock.h.

◆ TryReadLock()

bool FPThreadsRWLock::TryReadLock ( )
inline

Definition at line 46 of file PThreadRWLock.h.

◆ TryWriteLock()

bool FPThreadsRWLock::TryWriteLock ( )
inline

Definition at line 52 of file PThreadRWLock.h.

◆ WriteLock()

void FPThreadsRWLock::WriteLock ( )
inline

Definition at line 40 of file PThreadRWLock.h.

◆ WriteUnlock()

void FPThreadsRWLock::WriteUnlock ( )
inline

Definition at line 64 of file PThreadRWLock.h.

Member Data Documentation

◆ Mutex

pthread_rwlock_t FPThreadsRWLock::Mutex
private

Definition at line 71 of file PThreadRWLock.h.


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