|
CeresEngine 0.2.0
A game development framework
|
A lock that allows either reading or writing to the stream. More...
#include <CeresEngine/Resource/ResourceStream.hpp>
Public Member Functions | |
| ResourceStreamLock (ResourceStreamData &data, ScopedLock &&lock) | |
Creates a new ResourceStreamLock for the given resource stream and an acquired scoped lock. | |
| bool | isExclusive () const noexcept |
| Determines if the lock is exclusive (writing) or shared (reading). | |
| ResourceStreamData & | getStreamData () const noexcept |
| The resource stream data instance to which this lock corresponds to. | |
Private Types | |
| using | ScopedLock = ResourceStreamLockMutex::Lock |
| A type that represents the low-level scoped lock. | |
Private Attributes | |
| ScopedLock | mScopedLock |
The low-level scoped lock, usually acquired and managed from the owning ResourceStreamData instance. | |
| ResourceStreamDataPtr | mData |
| The resource stream data instance to which this lock corresponds to. | |
A lock that allows either reading or writing to the stream.
|
private |
A type that represents the low-level scoped lock.
|
inline |
Creates a new ResourceStreamLock for the given resource stream and an acquired scoped lock.
|
inlinenoexcept |
The resource stream data instance to which this lock corresponds to.
|
inlinenoexcept |
Determines if the lock is exclusive (writing) or shared (reading).
|
private |
The resource stream data instance to which this lock corresponds to.
|
private |
The low-level scoped lock, usually acquired and managed from the owning ResourceStreamData instance.