molecular
Public Types | Public Member Functions | Static Public Member Functions | List of all members
molecular::util::StdThread Class Referenceabstract

Wrapper around std::thread. More...

#include <StdThread.h>

Public Types

using Mutex = StdMutex
 

Public Member Functions

virtual ~StdThread ()
 
virtual void Work ()=0
 This is the workload function. More...
 
void Start ()
 Starts execution of the thread. More...
 
void WaitForExit ()
 Blocks the calling thread until this one ends. More...
 

Static Public Member Functions

static void Sleep (float seconds)
 

Detailed Description

Wrapper around std::thread.

Member Typedef Documentation

Constructor & Destructor Documentation

virtual molecular::util::StdThread::~StdThread ( )
inlinevirtual

Member Function Documentation

static void molecular::util::StdThread::Sleep ( float  seconds)
inlinestatic
void molecular::util::StdThread::Start ( )
inline

Starts execution of the thread.

void molecular::util::StdThread::WaitForExit ( )
inline

Blocks the calling thread until this one ends.

virtual void molecular::util::StdThread::Work ( )
pure virtual

This is the workload function.


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