Bytemaster's Boost Libraries
Public Member Functions
boost::cmt::mutex Class Reference

A non-blocking mutex, modified spin-lock that yields on failure. More...

#include <mutex.hpp>

List of all members.

Public Member Functions

bool try_lock ()
template<typename DurationType >
bool timed_lock (const DurationType &rel_time)
bool timed_lock (const boost::system_time &abs_time)
void lock ()
void unlock ()

Detailed Description

A non-blocking mutex, modified spin-lock that yields on failure.

This mutex does not block the current thread, but instead attempts to use an atomic operation to aquire the lock. If unsuccessful, then it yields to other tasks before trying again. If there is no current fiber, then yield is a no-op and mutex becomes a spin-lock.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Defines