Guitar
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Thread Class Referenceabstract

#include <thread.h>

Inheritance diagram for Thread:
Inheritance graph
[legend]

Public Member Functions

 Thread ()
 
virtual ~Thread ()
 
virtual void start ()
 
virtual void stop ()
 
virtual void join ()
 
virtual void terminate ()
 
virtual void detach ()
 
bool running () const
 

Static Public Member Functions

static void * run_ (void *arg)
 

Public Attributes

volatile bool _interrupted
 
bool _running
 
pthread_t _thread_handle
 

Protected Member Functions

virtual void run ()=0
 
virtual bool interrupted () const
 

Constructor & Destructor Documentation

◆ Thread()

Thread::Thread ( )
inline

◆ ~Thread()

virtual Thread::~Thread ( )
inlinevirtual
Here is the call graph for this function:

Member Function Documentation

◆ detach()

void Thread::detach ( )
virtual

◆ interrupted()

virtual bool Thread::interrupted ( ) const
inlineprotectedvirtual

◆ join()

void Thread::join ( )
virtual

◆ run()

virtual void Thread::run ( )
protectedpure virtual

◆ run_()

void * Thread::run_ ( void *  arg)
static
Here is the call graph for this function:

◆ running()

bool Thread::running ( ) const
inline

◆ start()

void Thread::start ( )
virtual
Here is the call graph for this function:

◆ stop()

void Thread::stop ( )
virtual

◆ terminate()

void Thread::terminate ( )
virtual

Member Data Documentation

◆ _interrupted

volatile bool Thread::_interrupted

◆ _running

bool Thread::_running

◆ _thread_handle

pthread_t Thread::_thread_handle

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