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 47 of file Mutex.h.


Constructor & Destructor Documentation

Creates a mutex.

Definition at line 53 of file Mutex.cpp.

Destroys a mutex.

Definition at line 85 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 92 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 100 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 108 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 116 of file Mutex.cpp.

Releases a mutex lock.

Definition at line 124 of file Mutex.cpp.


Member Data Documentation

Definition at line 127 of file Mutex.h.


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


fzi_icl_core
Author(s):
autogenerated on Tue Aug 8 2017 02:28:05