![]() |
XII Release 0.1.0
|
Copyright (c) Theophilus Eriata. All Rights Reserved. More...
#include <GraphSynchronization.h>
Public Member Functions | |
| xiiSynchronizedGraph (xiiAllocator *pAllocator=xiiDefaultAllocatorWrapper::GetAllocator()) | |
| xiiLockedObject< xiiMutex, const xiiGraph > | Read () const |
| Read access returns a locked object that unlocks on destruction. The graph is immutable for const access. | |
| xiiLockedObject< xiiMutex, xiiGraph > | Write () |
| Write access returns a locked object that unlocks on destruction. The graph is mutable even for const access. | |
Copyright (c) Theophilus Eriata. All Rights Reserved.
Optional scoped synchronization using Foundation's mutex and locked-object facility. Both reads and writes are exclusive. Keep views/cursors inside the access scope; handles may escape it. Operations and algorithms run atomically with respect to other access scopes. Lock ordering across graphs remains the caller's responsibility. The underlying plain graph carries no synchronization overhead.