uHTTP for C++
uHTTP::Thread Class Referenceabstract

#include <Thread.h>

Inheritance diagram for uHTTP::Thread:
uHTTP::HTTPServer uHTTP::HTTPWorkerThread

Public Member Functions

 Thread ()
 
virtual ~Thread ()
 
virtual bool start ()
 
virtual void run ()=0
 
bool isRunnable ()
 
virtual bool stop ()
 
void setObject (void *object)
 
void * getObject ()
 
bool restart ()
 

Private Member Functions

void setRunnableFlag (bool flag)
 

Private Attributes

pthread_t thread
 
Mutex mutex
 
bool runnableFlag
 
void * runObject
 

Constructor & Destructor Documentation

◆ Thread()

uHTTP::Thread::Thread ( )

◆ ~Thread()

virtual uHTTP::Thread::~Thread ( )
virtual

Member Function Documentation

◆ getObject()

void * uHTTP::Thread::getObject ( )
inline

◆ isRunnable()

bool uHTTP::Thread::isRunnable ( )

◆ restart()

bool uHTTP::Thread::restart ( )
inline

◆ run()

virtual void uHTTP::Thread::run ( )
pure virtual

◆ setObject()

void uHTTP::Thread::setObject ( void * object)
inline

◆ setRunnableFlag()

void uHTTP::Thread::setRunnableFlag ( bool flag)
private

◆ start()

virtual bool uHTTP::Thread::start ( )
virtual

Reimplemented in uHTTP::HTTPServer.

◆ stop()

virtual bool uHTTP::Thread::stop ( )
virtual

Reimplemented in uHTTP::HTTPServer.

Field Documentation

◆ mutex

Mutex uHTTP::Thread::mutex
private

◆ runnableFlag

bool uHTTP::Thread::runnableFlag
private

◆ runObject

void* uHTTP::Thread::runObject
private

◆ thread

pthread_t uHTTP::Thread::thread
private

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