Games Task Scheduler (GTS)
A multi-processor scheduling framework for games engines
|
A read-write 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 | |
WriteGuard (WriteGuard const &)=delete | |
WriteGuard (WriteGuard &&)=default | |
WriteGuard & | operator= (WriteGuard const &)=delete |
WriteGuard & | operator= (WriteGuard &&)=default |
WriteGuard (T *pItem, TAccessorSharedMutex *pAccessorMutex, TGrowSharedMutex *pGrowMutex) | |
WriteGuard & | operator= (T const &val) |
WriteGuard & | operator= (T &&val) |
~WriteGuard () | |
Unlocks the guarded element. | |
T & | get () |
Gets the contained value. More... | |
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-write item guarded by a mutex. The mutex is released on destruction.
T & WriteGuard::get | ( | ) |
Gets the contained value.