INMOST
A toolkit for distributed mathematical modeling
INMOST::Sparse::LockService Class Reference

This class can be used for shared access to matrix with OpenMP. More...

#include <inmost_sparse.h>

Public Member Functions

 LockService (INMOST_DATA_ENUM_TYPE start=0, INMOST_DATA_ENUM_TYPE end=0)
 
 LockService (const LockService &other)
 
LockServiceoperator= (LockService const &other)
 
INMOST_DATA_ENUM_TYPE GetFirstIndex () const
 Get the first row index of the distributed matrix interval.
 
INMOST_DATA_ENUM_TYPE GetLastIndex () const
 Get the last row index of the distributed matrix interval.
 
bool Empty () const
 
void SetInterval (INMOST_DATA_ENUM_TYPE beg, INMOST_DATA_ENUM_TYPE end)
 
void GetInterval (INMOST_DATA_ENUM_TYPE &start, INMOST_DATA_ENUM_TYPE &end) const
 
bool HaveLocks () const
 
bool Lock (INMOST_DATA_ENUM_TYPE row)
 
bool TestLock (INMOST_DATA_ENUM_TYPE row)
 
bool UnLock (INMOST_DATA_ENUM_TYPE row)
 

Detailed Description

This class can be used for shared access to matrix with OpenMP.

Definition at line 449 of file inmost_sparse.h.


The documentation for this class was generated from the following file: