Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TGenericPlatformRWLock< CriticalSection > Class Template Reference

#include <GenericPlatformCriticalSection.h>

Public Member Functions

 TGenericPlatformRWLock (const TGenericPlatformRWLock &)=delete
 
TGenericPlatformRWLockoperator= (const TGenericPlatformRWLock &)=delete
 
FORCEINLINE TGenericPlatformRWLock ()
 
FORCEINLINE ~TGenericPlatformRWLock ()
 
FORCEINLINE void ReadLock ()
 
FORCEINLINE void WriteLock ()
 
FORCEINLINE bool TryReadLock ()
 
FORCEINLINE bool TryWriteLock ()
 
FORCEINLINE void ReadUnlock ()
 
FORCEINLINE void WriteUnlock ()
 

Private Attributes

CriticalSection Mutex
 

Detailed Description

template<class CriticalSection>
class TGenericPlatformRWLock< CriticalSection >

TGenericPlatformRWLock - Read/Write Mutex

  • Provides non-recursive Read/Write (or shared-exclusive) access.
  • As a fallback default for non implemented platforms, using a single FCriticalSection to provide complete single mutual exclusion - no seperate Read/Write access.

Definition at line 39 of file GenericPlatformCriticalSection.h.

Constructor & Destructor Documentation

◆ TGenericPlatformRWLock() [1/2]

template<class CriticalSection >
TGenericPlatformRWLock< CriticalSection >::TGenericPlatformRWLock ( const TGenericPlatformRWLock< CriticalSection > & )
delete

◆ TGenericPlatformRWLock() [2/2]

template<class CriticalSection >
FORCEINLINE TGenericPlatformRWLock< CriticalSection >::TGenericPlatformRWLock ( )
inline

Definition at line 45 of file GenericPlatformCriticalSection.h.

◆ ~TGenericPlatformRWLock()

template<class CriticalSection >
FORCEINLINE TGenericPlatformRWLock< CriticalSection >::~TGenericPlatformRWLock ( )
inline

Definition at line 49 of file GenericPlatformCriticalSection.h.

Member Function Documentation

◆ operator=()

template<class CriticalSection >
TGenericPlatformRWLock & TGenericPlatformRWLock< CriticalSection >::operator= ( const TGenericPlatformRWLock< CriticalSection > & )
delete

◆ ReadLock()

template<class CriticalSection >
FORCEINLINE void TGenericPlatformRWLock< CriticalSection >::ReadLock ( )
inline

Definition at line 53 of file GenericPlatformCriticalSection.h.

◆ ReadUnlock()

template<class CriticalSection >
FORCEINLINE void TGenericPlatformRWLock< CriticalSection >::ReadUnlock ( )
inline

Definition at line 73 of file GenericPlatformCriticalSection.h.

◆ TryReadLock()

template<class CriticalSection >
FORCEINLINE bool TGenericPlatformRWLock< CriticalSection >::TryReadLock ( )
inline

Definition at line 63 of file GenericPlatformCriticalSection.h.

◆ TryWriteLock()

template<class CriticalSection >
FORCEINLINE bool TGenericPlatformRWLock< CriticalSection >::TryWriteLock ( )
inline

Definition at line 68 of file GenericPlatformCriticalSection.h.

◆ WriteLock()

template<class CriticalSection >
FORCEINLINE void TGenericPlatformRWLock< CriticalSection >::WriteLock ( )
inline

Definition at line 58 of file GenericPlatformCriticalSection.h.

◆ WriteUnlock()

template<class CriticalSection >
FORCEINLINE void TGenericPlatformRWLock< CriticalSection >::WriteUnlock ( )
inline

Definition at line 78 of file GenericPlatformCriticalSection.h.

Member Data Documentation

◆ Mutex

template<class CriticalSection >
CriticalSection TGenericPlatformRWLock< CriticalSection >::Mutex
private

Definition at line 84 of file GenericPlatformCriticalSection.h.


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