Public Member Functions | Private Attributes
icl_core::thread::RWLock Class Reference

#include <RWLock.h>

Inheritance diagram for icl_core::thread::RWLock:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool readLock ()
bool readLock (const ::icl_core::TimeStamp &timeout)
bool readLock (const ::icl_core::TimeSpan &timeout)
 RWLock ()
bool tryReadLock ()
bool tryWriteLock ()
void unlock ()
bool writeLock ()
bool writeLock (const ::icl_core::TimeStamp &timeout)
bool writeLock (const ::icl_core::TimeSpan &timeout)
virtual ~RWLock ()

Private Attributes

RWLockImplm_impl

Detailed Description

Implements a platform independent read/write lock.

Definition at line 34 of file RWLock.h.


Constructor & Destructor Documentation

Creates a read/write lock.

Definition at line 33 of file RWLock.cpp.

Destroys a read/write lock.

Definition at line 65 of file RWLock.cpp.


Member Function Documentation

Tries to get a shared read lock on the RWLock.

Returns:
true if locking succeeds, or false on a timeout or every other failure.

Definition at line 72 of file RWLock.cpp.

Tries to get a shared read lock on the RWLock with an absolute timeout. The function may then return with false if the absolute time passes without being able to lock the RWLock.

Definition at line 81 of file RWLock.cpp.

Tries to get a shared read lock on the RWLock with a relative timeout. The function may then return with false if the relative time passes without being able to lock the RWLock.

Definition at line 91 of file RWLock.cpp.

Tries to get a shared read lock on the RWLock without blocking. The mutex is locked if it is available.

Returns:
true if the RWLock has been locked, false otherwise.

Definition at line 101 of file RWLock.cpp.

Tries to get a shared write lock on the RWLock without blocking. The RWLock is locked if it is available.

Returns:
true if the RWLock has been locked, false otherwise.

Definition at line 139 of file RWLock.cpp.

Releases a shared read or write lock on the RWLock.

Definition at line 148 of file RWLock.cpp.

Tries to get a shared write lock on the RWLock.

Returns:
true if locking succeeds, or false on a timeout or every other failure.

Definition at line 110 of file RWLock.cpp.

Tries to get a shared write lock on the RWLock with an absolute timeout. The function may then return with false if the absolute time passes without being able to lock the RWLock.

Definition at line 119 of file RWLock.cpp.

Tries to get a shared write lock on the RWLock with a relative timeout. The function may then return with false if the relative time passes without being able to lock the RWLock.

Definition at line 129 of file RWLock.cpp.


Member Data Documentation

Definition at line 161 of file RWLock.h.


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


schunk_svh_driver
Author(s): Georg Heppner
autogenerated on Fri Aug 28 2015 12:59:20