commore  1.0.6-SNAPSHOT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
commore::ThreadActor Struct Reference
+ Inheritance diagram for commore::ThreadActor:

Public Member Functions

 ThreadActor (Processor::HImpl::PImpl *p)
 
 ~ThreadActor ()
 
void run ()
 
- Public Member Functions inherited from commore::Thread
 Thread ()
 
virtual ~Thread ()
 
bool start ()
 
bool request_stop ()
 
bool stop ()
 
bool is_to_stop ()
 
bool is_stopped ()
 
bool is_running ()
 
bool wait (TimePeriod timeout)
 
bool trigger ()
 
virtual void run_item ()
 
- Public Member Functions inherited from commore::RefObject
 RefObject ()
 
virtual ~RefObject ()
 
virtual void attach ()
 
virtual void release ()
 
virtual void nested_attach ()
 
virtual void nested_release ()
 
virtual void interface_release ()
 
virtual void Run ()
 
virtual CriticalSectionget_cs ()
 

Public Attributes

AutoRef< Processor::HImpl::PImplprocessor
 
bool to_stop
 

Additional Inherited Members

- Static Public Member Functions inherited from commore::RefObject
static AutoRefBase auto_create ()
 
static AutoRefBase auto_create (const AChar *s)
 
static AutoRefBase create ()
 
static AutoRefBase create (const AChar *s)
 
static AutoRefBase bind ()
 
static AutoRefBase bind (const AChar *s)
 
static const ACharfactory_name ()
 

Detailed Description

The processor thread implementation

Constructor & Destructor Documentation

commore::ThreadActor::ThreadActor ( Processor::HImpl::PImpl p)
inline
commore::ThreadActor::~ThreadActor ( )
inline

Member Function Documentation

void commore::ThreadActor::run ( )
inlinevirtual

The main thread function. The method is call on start method by created system thread. The thread terminate when this method end. Must be implemented by derived class.

Remarks
The implementation must constantly check the stop flag to allow graceful stop.

Reimplemented from commore::Thread.

Member Data Documentation

AutoRef<Processor::HImpl::PImpl> commore::ThreadActor::processor
bool commore::ThreadActor::to_stop

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