Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes | Protected Attributes
jafar::kernel::VariableMutex< T > Class Template Reference

This class wraps a simple variable with a mutex very limited but can be useful for lazy people respects the Lockable concept. More...


Detailed Description

template<typename T>
class jafar::kernel::VariableMutex< T >

This class wraps a simple variable with a mutex very limited but can be useful for lazy people respects the Lockable concept.

Definition at line 97 of file threads.hpp.

#include <threads.hpp>

Inheritance diagram for jafar::kernel::VariableMutex< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 VariableMutex (const T &val_init)
get ()
template<typename Assign >
void apply (Assign assign)
void set (const T &val)
operator() ()
void operator() (const T &val)
void lock ()
bool try_lock ()
void unlock ()

Public Attributes

var

Protected Attributes

boost::mutex m

Member Data Documentation

template<typename T>
T jafar::kernel::VariableMutex< T >::var
Warning:
direct access to the variable, needs manual locking! Provided for efficiency purpose when doing several operations.

Definition at line 100 of file threads.hpp.


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

Generated on Wed Oct 15 2014 00:37:40 for Jafar by doxygen 1.7.6.1
LAAS-CNRS