IRWMutex

Assembly: System;

Description

The IRWMutex interface contains properties and methods that are used to control mutex.

Inheritance Hierarchy

IRWMutex

Comments

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. In Foresight Analytics Platform tools, lockings are controlled automatically. When working with cubes in Fore locking should be controlled on the application level.

Properties

  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.

Methods

  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:

System Assembly Interfaces