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

#include <Mutex.h>

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

List of all members.

Public Member Functions

bool lock ()
bool lock (const ::icl_core::TimeStamp &timeout)
bool lock (const ::icl_core::TimeSpan &timeout)
 Mutex ()
bool tryLock ()
void unlock ()
virtual ~Mutex ()

Private Attributes

MutexImplm_impl

Detailed Description

Implements a platform independent mutex.

Definition at line 34 of file Mutex.h.


Constructor & Destructor Documentation

Creates a mutex.

Definition at line 40 of file Mutex.cpp.

Destroys a mutex.

Definition at line 72 of file Mutex.cpp.


Member Function Documentation

Locks a mutex. Blocks until the mutex can be locked or a severe error occurs. Returns true on success and false on failure.

Definition at line 79 of file Mutex.cpp.

Locks a mutex with an absolute timeout. The function may then return with false, if the absolute time passes without being able to lock the mutex.

Definition at line 87 of file Mutex.cpp.

Locks a mutex with a relative timeout. The function may then return with false, if the relative time passes without being able to lock the mutex.

Definition at line 95 of file Mutex.cpp.

Tries to lock a mutex without blocking. The mutex is locked if it is available.

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

Definition at line 103 of file Mutex.cpp.

Releases a mutex lock.

Definition at line 111 of file Mutex.cpp.


Member Data Documentation

Definition at line 114 of file Mutex.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