A MRPT thread handle.
Like std::thread, but have copy semantics, via an internal std::shared_ptr<std::thread> object.
#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 |
|
inline |
|
inline |
Mark the handle as invalid.
Definition at line 38 of file threads.h.
References m_thread.
Referenced by mrpt::hwdrivers::CRovio::retrieve_video(), mrpt::pbmap::PbMapLocaliser::stop_pbMapLocaliser(), mrpt::pbmap::PbMapMaker::stop_pbMapMaker(), mrpt::hwdrivers::CRovio::stop_video(), mrpt::gui::WxSubsystem::wxMainThread(), mrpt::hwdrivers::CNTRIPClient::~CNTRIPClient(), and ~TThreadHandle().
|
inline |
Returns true if the handle is uninitialized.
Definition at line 45 of file threads.h.
References m_thread.
Referenced by mrpt::gui::WxSubsystem::createOneInstanceMainThread(), mrpt::hwdrivers::CNationalInstrumentsDAQ::initialize(), mrpt::hwdrivers::CRovio::isVideoStreamming(), mrpt::hwdrivers::CRovio::retrieve_video(), mrpt::gui::WxSubsystem::waitWxShutdownsIfNoWindows(), and mrpt::hwdrivers::CNTRIPClient::~CNTRIPClient().
std::shared_ptr<std::thread> mrpt::system::TThreadHandle::m_thread |
Definition at line 30 of file threads.h.
Referenced by clear(), mrpt::system::createThread(), mrpt::system::createThreadFromObjectMethod(), mrpt::system::createThreadFromObjectMethodRef(), mrpt::system::createThreadRef(), isClear(), and mrpt::system::joinThread().
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 |