Eigen::StlThreadEnvironment::EnvThread Class Reference

Public Member Functions

 EnvThread (std::function< void()> f)
 
void OnCancel ()
 
 ~EnvThread ()
 

Private Attributes

std::thread thr_
 

Detailed Description

Definition at line 24 of file ThreadEnvironment.h.

Constructor & Destructor Documentation

◆ EnvThread()

Eigen::StlThreadEnvironment::EnvThread::EnvThread ( std::function< void()>  f)
inline

Definition at line 26 of file ThreadEnvironment.h.

26 : thr_(std::move(f)) {}

◆ ~EnvThread()

Eigen::StlThreadEnvironment::EnvThread::~EnvThread ( )
inline

Definition at line 27 of file ThreadEnvironment.h.

27 { thr_.join(); }

Member Function Documentation

◆ OnCancel()

void Eigen::StlThreadEnvironment::EnvThread::OnCancel ( )
inline

Definition at line 29 of file ThreadEnvironment.h.

29 { }

Member Data Documentation

◆ thr_

std::thread Eigen::StlThreadEnvironment::EnvThread::thr_
private

Definition at line 32 of file ThreadEnvironment.h.


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