Developer documentation
Version 3.0.3-105-gd3941f44
MR::DWI::Tractography::GT::SpatialLock< T > Class Template Reference

SpatialLock manages a mutex lock on n positions in 3D space. More...

#include "dwi/tractography/GT/spatiallock.h"

Protected Member Functions

bool try_lock (const point_type &pos, ssize_t &idx)
 
void unlock (const size_t idx)
 

Protected Attributes

std::mutex mutex
 
vector< std::pair< point_type, bool > > lockcentres
 
value_type _tx
 
value_type _ty
 
value_type _tz
 

Detailed Description

template<typename T = float>
class MR::DWI::Tractography::GT::SpatialLock< T >

SpatialLock manages a mutex lock on n positions in 3D space.

Definition at line 35 of file spatiallock.h.

Member Function Documentation

◆ try_lock()

template<typename T = float>
bool MR::DWI::Tractography::GT::SpatialLock< T >::try_lock ( const point_type &  pos,
ssize_t &  idx 
)
inlineprotected

Definition at line 90 of file spatiallock.h.

◆ unlock()

template<typename T = float>
void MR::DWI::Tractography::GT::SpatialLock< T >::unlock ( const size_t  idx)
inlineprotected

Definition at line 115 of file spatiallock.h.

Member Data Documentation

◆ _tx

template<typename T = float>
value_type MR::DWI::Tractography::GT::SpatialLock< T >::_tx
protected

Definition at line 88 of file spatiallock.h.

◆ _ty

template<typename T = float>
value_type MR::DWI::Tractography::GT::SpatialLock< T >::_ty
protected

Definition at line 88 of file spatiallock.h.

◆ _tz

template<typename T = float>
value_type MR::DWI::Tractography::GT::SpatialLock< T >::_tz
protected

Definition at line 88 of file spatiallock.h.

◆ lockcentres

template<typename T = float>
vector< std::pair<point_type, bool> > MR::DWI::Tractography::GT::SpatialLock< T >::lockcentres
protected

Definition at line 87 of file spatiallock.h.

◆ mutex

template<typename T = float>
std::mutex MR::DWI::Tractography::GT::SpatialLock< T >::mutex
protected

Definition at line 86 of file spatiallock.h.


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