Implements read/write lock symantics for a variable.
More...
#include <ReadWriteLock.hh>
|
| ReadWriteLockVariable (baton_type Baton, int Timeout, V &Variable, const char *Filename, int Linenum) |
| Constructor.
|
|
| ReadWriteLockVariable (baton_type Baton, int Timeout, const V &Variable, const char *Filename, int Linenum) |
| Constructor.
|
|
| ReadWriteLockVariable (const ReadWriteLockVariable &Source, const char *Filename, int Linenum) |
| Copy constructor.
|
|
const V & | Var () const |
| Read only access to the variable.
|
|
V & | Var () |
| Read/Write access to the variable.
|
|
| ReadWriteLockVariable (baton_type Baton, int Timeout, V &Variable, const char *Filename, int Linenum) |
| Constructor.
|
|
| ReadWriteLockVariable (baton_type Baton, int Timeout, const V &Variable, const char *Filename, int Linenum) |
| Constructor.
|
|
| ReadWriteLockVariable (const ReadWriteLockVariable &Source, const char *Filename, int Linenum) |
| Copy constructor.
|
|
const V & | Var () const |
| Read only access to the variable.
|
|
V & | Var () |
| Read/Write access to the variable.
|
|
Implements read/write lock symantics for a variable.
This class allows for manipulation of variables to be thread safe.
std::string v;
lock( baton, 0, v);
try
{
if ( lock.Var( ).size( ) == 0 )
{
lock.Var( ).assign( "New value" );
}
}
catch( )
{
}
◆ baton_type [1/2]
Baton.
The resource used to manage resouce access.
◆ baton_type [2/2]
Baton.
The resource used to manage resouce access.
◆ element_type [1/2]
Type of variable.
The type of variable being managed.
◆ element_type [2/2]
Type of variable.
The type of variable being managed.
◆ ReadWriteLockVariable() [1/6]
Constructor.
- Parameters
-
[in] | Baton | Baton controlling access to the resource. |
[in] | Timeout | Maximum length of time to wait on obtaining the lock. |
[in] | Variable | Variable being managed by the class. |
[in] | Filename | The filename from where the call was made. |
[in] | Linenum | The line number from where the call was made. |
◆ ReadWriteLockVariable() [2/6]
Constructor.
- Parameters
-
[in] | Baton | Baton controlling access to the resource. |
[in] | Timeout | Maximum length of time to wait on obtaining the lock. |
[in] | Variable | Variable being managed by the class. |
[in] | Filename | The filename from where the call was made. |
[in] | Linenum | The line number from where the call was made. |
◆ ReadWriteLockVariable() [3/6]
Copy constructor.
- Parameters
-
[in] | Source | Source from which to initialize. |
[in] | Filename | The filename from where the call was made. |
[in] | Linenum | The line number from where the call was made. |
◆ ReadWriteLockVariable() [4/6]
Constructor.
- Parameters
-
[in] | Baton | Baton controlling access to the resource. |
[in] | Timeout | Maximum length of time to wait on obtaining the lock. |
[in] | Variable | Variable being managed by the class. |
[in] | Filename | The filename from where the call was made. |
[in] | Linenum | The line number from where the call was made. |
◆ ReadWriteLockVariable() [5/6]
Constructor.
- Parameters
-
[in] | Baton | Baton controlling access to the resource. |
[in] | Timeout | Maximum length of time to wait on obtaining the lock. |
[in] | Variable | Variable being managed by the class. |
[in] | Filename | The filename from where the call was made. |
[in] | Linenum | The line number from where the call was made. |
◆ ReadWriteLockVariable() [6/6]
Copy constructor.
- Parameters
-
[in] | Source | Source from which to initialize. |
[in] | Filename | The filename from where the call was made. |
[in] | Linenum | The line number from where the call was made. |
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7/build/include/ldastoolsal/ReadWriteLock.hh
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7/src/ReadWriteLock.hh