Games Task Scheduler (GTS)
A multi-processor scheduling framework for games engines
|
A read-only item guarded by a mutex. The mutex is released on destruction. More...
#include <Guards.h>
Inherits gts::internal::GuardBase< T, TAccessorSharedMutex, TGrowSharedMutex >.
Public Member Functions | |
ReadGuard (ReadGuard const &)=delete | |
ReadGuard (ReadGuard &&)=default | |
ReadGuard & | operator= (ReadGuard const &)=delete |
ReadGuard & | operator= (ReadGuard &&)=default |
ReadGuard (T *pItem, TAccessorSharedMutex *pAccessorMutex, TGrowSharedMutex *pGrowMutex) | |
~ReadGuard () | |
Unlocks the guarded element. | |
Public Member Functions inherited from gts::internal::GuardBase< T, TAccessorSharedMutex, TGrowSharedMutex > | |
GuardBase (GuardBase const &)=delete | |
GuardBase & | operator= (GuardBase const &)=delete |
GuardBase (GuardBase &&other) | |
GuardBase & | operator= (GuardBase &&other) |
GuardBase (T *pItem, TAccessorSharedMutex *pAccessorMutex, TGrowSharedMutex *pGrowMutex) | |
T const & | get () const |
Gets the contained value. More... | |
bool | isValid () const |
Checks if the contained value is valid. More... | |
Additional Inherited Members | |
Protected Attributes inherited from gts::internal::GuardBase< T, TAccessorSharedMutex, TGrowSharedMutex > | |
T * | m_pItem |
TAccessorSharedMutex * | m_pAccessorMutex |
TGrowSharedMutex * | m_pGrowMutex |
A read-only item guarded by a mutex. The mutex is released on destruction.