Main MRPT website > C++ reference for MRPT 1.5.8
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.8 Git: f67d0f871 Wed Sep 25 18:32:17 2019 +0200 at lun oct 28 01:58:29 CET 2019