Mutex Class Reference

Mutual exclusion lock to protect shared data. More...

Inheritance diagram for Mutex:
[legend]
Collaboration diagram for Mutex:
[legend]

List of all members.

Public Member Functions

void Lock () const
 Obtains the lock.
void Lock () const
 Obtains the lock.
 Mutex (DummyRecursiveAttribute v)
 Mutex (DummyRecursiveAttribute v)
bool TryLock () const
 Tries to lock, returns false if doing so would require waiting.
bool TryLock () const
 Tries to lock, returns false if doing so would require waiting.
void Unlock () const
 Releases the lock.
void Unlock () const
 Releases the lock.

Static Public Attributes

static Mutex global

Friends

class WaitCondition

Detailed Description

Mutual exclusion lock to protect shared data.

Definition at line 188 of file thread.h.


Member Function Documentation

void Mutex::Lock (  )  const [inline]

Obtains the lock.

Definition at line 226 of file thread.h.

void Mutex::Lock (  )  const [inline]
bool Mutex::TryLock (  )  const [inline]

Tries to lock, returns false if doing so would require waiting.

Definition at line 233 of file thread.h.

bool Mutex::TryLock (  )  const [inline]

Tries to lock, returns false if doing so would require waiting.

Definition at line 233 of file thread.h.

void Mutex::Unlock (  )  const [inline]

Releases the lock.

Definition at line 238 of file thread.h.

void Mutex::Unlock (  )  const [inline]

The documentation for this class was generated from the following files:
Generated on Mon Jan 24 12:04:40 2011 for FASTlib by  doxygen 1.6.3