commore
1.0.6-SNAPSHOT
|
#include <Action.h>
Public Member Functions | |
virtual void | run () |
void | submit (Processor &processor) |
void | stop (Processor &processor, bool wait=true) |
void | abort (Processor &processor, bool wait=true) |
bool | is_to_stop () |
bool | is_to_abort () |
bool | is_running () |
bool | is_stopped () |
int | wait (Processor &processor, const int timeout_ms=0) |
void | reset () |
commore::CriticalSection * | get_cs () |
![]() | |
RefObject () | |
virtual void | attach () |
virtual void | release () |
virtual void | nested_attach () |
virtual void | nested_release () |
virtual void | interface_release () |
virtual void | Run () |
Friends | |
class | ProcessorImpl |
class | ThreadItem |
struct | ThreadActor |
Additional Inherited Members | |
![]() | |
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 AChar * | factory_name () |
Base class for action action is implemeted in the run methode
void commore::Action::abort | ( | Processor & | processor, |
bool | wait = true |
||
) |
Set action abort flag if not wait the pending queue is flushed
processor | where action is submitted |
wait | if true wait action terminate |
|
virtual |
Specific Action AutoRef critical section protection
Reimplemented from commore::RefObject.
bool commore::Action::is_to_stop | ( | ) |
Check action status
void commore::Action::reset | ( | ) |
Clear stop flag
|
virtual |
Run method to be implemented in derived class
void commore::Action::stop | ( | Processor & | processor, |
bool | wait = true |
||
) |
Set action stop flag if not wait the pending queue is flushed
processor | where action is submitted |
wait | if true wait action terminate |
void commore::Action::submit | ( | Processor & | processor | ) |
Submit the action to a processor
int commore::Action::wait | ( | Processor & | processor, |
const int | timeout_ms = 0 |
||
) |
Wait action terminate
processor | where action is submited |
timeout_ms | timeout in milliseconds |