OpenDaVINCI  4.15.3
odcore::wrapper::POSIX::POSIXThread Class Reference

#include <POSIXThread.h>

Inheritance diagram for odcore::wrapper::POSIX::POSIXThread:
Inheritance graph

Public Member Functions

virtual ~POSIXThread ()
 
virtual bool start ()
 
virtual bool stop ()
 
virtual bool isRunning () const
 

Friends

class ConcurrencyFactoryWorker< SystemLibraryPosix >
 

Detailed Description

This class is an implementation of the thread interface using pthread.

Thread

Constructor & Destructor Documentation

odcore::wrapper::POSIX::POSIXThread::~POSIXThread ( )
virtual

Member Function Documentation

bool odcore::wrapper::POSIX::POSIXThread::isRunning ( ) const
virtual

This method returns true, iff the thread is running.

Returns
true, iff the thread is running.

Implements odcore::wrapper::Thread.

bool odcore::wrapper::POSIX::POSIXThread::start ( )
virtual

This method starts a thread.

Returns
true, iff the thread could be started.

Implements odcore::wrapper::Thread.

References odcore::wrapper::POSIX::threadRunner().

bool odcore::wrapper::POSIX::POSIXThread::stop ( )
virtual

This method stops a thread. A stopped thread cannot be restarted.

Returns
true, iff the thread could be stopped.

Implements odcore::wrapper::Thread.

Friends And Related Function Documentation