commore
1.0.6-SNAPSHOT
|
#include <Action.h>
Classes | |
struct | Impl |
Public Member Functions | |
Action () | |
virtual | ~Action () |
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 | ~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
Action::Action | ( | ) |
|
virtual |
void 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 Action::is_running | ( | ) |
bool Action::is_stopped | ( | ) |
bool Action::is_to_abort | ( | ) |
bool Action::is_to_stop | ( | ) |
Check action status
void Action::reset | ( | ) |
Clear stop flag
|
virtual |
Run method to be implemented in derived class
Reimplemented in ConnectionAction, ProcessFunctionAction, and Socket.
void 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 Action::submit | ( | Processor & | processor | ) |
Submit the action to a processor
int Action::wait | ( | Processor & | processor, |
const int | timeout_ms = 0 |
||
) |
Wait action terminate
processor | where action is submited |
timeout_ms | timeout in milliseconds |
|
friend |
|
friend |
|
friend |