Main MRPT website > C++ reference for MRPT 1.5.9
List of all members | Public Member Functions | Public Attributes
mrpt::system::TThreadHandle Struct Reference

Detailed Description

A MRPT thread handle.

Like std::thread, but have copy semantics, via an internal std::shared_ptr<std::thread> object.

See also
createThread

Definition at line 28 of file threads.h.

#include <mrpt/system/threads.h>

Public Member Functions

 TThreadHandle ()
 
 ~TThreadHandle ()
 
void clear ()
 Mark the handle as invalid. More...
 
bool isClear () const
 Returns true if the handle is uninitialized. More...
 

Public Attributes

std::shared_ptr< std::thread > m_thread
 

Constructor & Destructor Documentation

◆ TThreadHandle()

mrpt::system::TThreadHandle::TThreadHandle ( )
inline

Definition at line 32 of file threads.h.

◆ ~TThreadHandle()

mrpt::system::TThreadHandle::~TThreadHandle ( )
inline

Definition at line 33 of file threads.h.

References clear().

Member Function Documentation

◆ clear()

void mrpt::system::TThreadHandle::clear ( )
inline

◆ isClear()

bool mrpt::system::TThreadHandle::isClear ( ) const
inline

Member Data Documentation

◆ m_thread

std::shared_ptr<std::thread> mrpt::system::TThreadHandle::m_thread



Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020