AndroMeta  2.0.0
Public Member Functions | Friends
Meta::MMutex Class Reference

Thread synchronization construct. More...

#include <MMutex.h>

List of all members.

Public Member Functions

 MMutex ()
 ~MMutex ()
void lock ()
bool lock (const mtime &timeout)
bool tryLock ()
void unlock ()

Friends

class MMutex_

Detailed Description

Thread synchronization construct.

A mutual-exclusion lock used to protect data shared among threads.


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

Block until an exclusive lock is acquired on the mutex.

bool Meta::MMutex::lock ( const mtime timeout)

Block until an exclusive lock is acquired on the mutex or timeout has been reached.

Returns:
true on sucess, i.e: did not time out.

Attempt to obtain an exclusive lock on the mutex, but do not spend any time waiting.

Returns:
true on success.

Release the lock on the mutex.


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