Assembly: System;
Namespace: Prognoz.Platform.Interop.ForeSystem;
The IRWMutex interface contains properties and methods that are used to control mutex.
IRWMutex
Mutex is an object that implements mechanism of synchronization that provides access to data only from one stream at a time. In the current implementation mutex is supported by matrix and matrix iterator, which are obtained on the basis of cached cube data (cube is calculated in the CubeInstanceDestinationExecutorOptions.Cached mode).
The use of mutex is required if the developed code supposes working with cached cube data, but code is executed via web services of BI server of platform. On working of BI server cube cache is loaded to memory once, and all objects configured to work with the cube, will use common cache. Foresight Analytics Platform control locking automatically, when working with cubes in Fore locking must be controlled at the application level.
Property name | Brief description | |
HasReadLock | The HasReadLock property returns whether there is enabled data read locking. | |
HasWriteLock | The HasWriteLock property returns whether there is enabled data write locking. | |
LockType | The LockType property returns mutex type. |
Method name | Brief description | |
CreateReadLock | The CreateReadLock method creates an object that controls data read locking. | |
CreateWriteLock | The CreateWriteLock method creates an object that controls data write locking. | |
LockRead | The LockRead method enables data read locking. | |
LockWrite | The LockWrite method enables data write locking. | |
UnlockRead | The UnlockRead method disables data read locking. | |
UnlockWrite | The UnlockWrite method disables data write locking. |
See also: