gPTP Documentation
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Stoppable Class Referenceabstract

#include <Stoppable.hpp>

Inheritance diagram for Stoppable:
Inheritance graph
Collaboration diagram for Stoppable:
Collaboration graph

Public Member Functions

 Stoppable ()
 
bool stop ()
 Stops thread. More...
 
virtual ~Stoppable ()=0
 

Protected Attributes

bool exit_waiting
 
HANDLE thread
 

Detailed Description

Provides an interface to stop threads

Constructor & Destructor Documentation

Stoppable::Stoppable ( )
inline

Initializes interface

virtual Stoppable::~Stoppable ( )
inlinepure virtual

destroys the interface

Member Function Documentation

bool Stoppable::stop ( )
inline

Stops thread.

Returns
TRUE in case of success. FALSE otherwise.

Member Data Documentation

bool Stoppable::exit_waiting
protected

Waiting to exit

HANDLE Stoppable::thread
protected

Thread handler


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