unixstl/synch/spin_mutex.hpp File Reference


Detailed Description

[C++ only] Definition of the unixstl::spin_mutex class (Synchronisation Library).

#include <unixstl/unixstl.h>
#include <unixstl/synch/util/features.h>
#include <unixstl/synch/atomic_functions.h>
#include <stlsoft/synch/concepts.hpp>
#include <stlsoft/synch/spin_policies.hpp>
#include <sched.h>

Go to the source code of this file.

Namespaces

namespace  unixstl

Classes

class  spin_mutex_base
 This class provides an implementation of the mutex model based on a spinning mechanism. More...
struct  spin_mutex_lock_traits
 Traits for the spin_mutex class. More...

Typedefs

typedef spin_mutex_base
< stlsoft::spin_yield
spin_mutex_yield
typedef spin_mutex_base
< stlsoft::spin_no_yield
spin_mutex_no_yield
typedef spin_mutex_yield spin_mutex

Functions

template<typename SP>
void lock_instance (unixstl_ns_qual(spin_mutex_base)< SP > &mx)
 This control shim aquires a lock on the given mutex.
template<typename SP>
void unlock_instance (unixstl_ns_qual(spin_mutex_base)< SP > &mx)
 This control shim releases a lock on the given mutex.


Generated on Thu Jun 10 08:58:00 2010 for STLSoft by  doxygen 1.5.6