fpmas 1.6
Public Member Functions | List of all members
fpmas::synchro::LockGuard< T > Class Template Reference

#include <guards.h>

Inheritance diagram for fpmas::synchro::LockGuard< T >:
Inheritance graph
[legend]
Collaboration diagram for fpmas::synchro::LockGuard< T >:
Collaboration graph
[legend]

Public Member Functions

 LockGuard (api::graph::DistributedNode< T > *node)
 
virtual ~LockGuard ()
 

Detailed Description

template<typename T>
class fpmas::synchro::LockGuard< T >

LockGuard.

Constructor & Destructor Documentation

◆ LockGuard()

template<typename T >
fpmas::synchro::LockGuard< T >::LockGuard ( api::graph::DistributedNode< T > *  node)
inline

LockGuard constructor.

The node is locked exactly as if node->mutex()->lock() was called.

Parameters
nodeto lock

◆ ~LockGuard()

template<typename T >
virtual fpmas::synchro::LockGuard< T >::~LockGuard ( )
inlinevirtual

LockGuard destructor.

Unlocks the node.


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