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;
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/8]
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/8]
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/8]
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/8]
◆ ReadWriteLockVariable() [5/8]
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/8]
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() [7/8]
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() [8/8]
◆ release() [1/2]
◆ release() [2/2]
◆ Var() [1/4]
Read/Write access to the variable.
◆ Var() [2/4]
Read/Write access to the variable.
◆ Var() [3/4]
Read only access to the variable.
◆ Var() [4/4]
Read only access to the variable.
◆ m_baton
◆ m_is_locked
◆ m_is_read_only
◆ m_lock
◆ m_timeout
◆ m_variable
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/build/include/ldastoolsal/ReadWriteLock.hh
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/src/ReadWriteLock.hh