TAO_CosNotification
2.1.6
|
Implements a Thread Pool Worker Task. More...
#include <ThreadPool_Task.h>
Public Member Functions | |
TAO_Notify_ThreadPool_Task (void) | |
Constructor. | |
virtual | ~TAO_Notify_ThreadPool_Task () |
Destructor. | |
virtual int | init (int argc, ACE_TCHAR **argv) |
Call the base class init. | |
virtual int | close (u_long flags) |
release reference to my self. | |
void | init (const NotifyExt::ThreadPoolParams &tp_params, const TAO_Notify_AdminProperties::Ptr &admin_properties) |
Activate the threadpool. | |
virtual void | execute (TAO_Notify_Method_Request &method_request) |
Queue the request. | |
virtual void | shutdown () |
Shutdown task. | |
virtual void | update_qos_properties (const TAO_Notify_QoSProperties &qos_properties) |
Update QoS Properties. | |
virtual TAO_Notify_Timer * | timer (void) |
The object used by clients to register timers. | |
TAO_Notify_Buffering_Strategy * | buffering_strategy (void) |
Provide access to the underlying buffering strategy. | |
Public Member Functions inherited from TAO_Notify_Worker_Task | |
TAO_Notify_Worker_Task (void) | |
Constructor. | |
Public Member Functions inherited from TAO_Notify_Refcountable | |
TAO_Notify_Refcountable (void) | |
Constructor. | |
virtual | ~TAO_Notify_Refcountable () |
CORBA::ULong | _incr_refcnt (void) |
CORBA::ULong | _decr_refcnt (void) |
Public Member Functions inherited from ACE_Task< ACE_NULL_SYNCH > | |
ACE_Task (ACE_Thread_Manager *thr_mgr=0, ACE_Message_Queue< ACE_SYNCH_USE, TIME_POLICY > *mq=0) | |
virtual | ~ACE_Task (void) |
ACE_Message_Queue < ACE_SYNCH_USE, TIME_POLICY > * | msg_queue (void) |
void | msg_queue (ACE_Message_Queue< ACE_SYNCH_USE, TIME_POLICY > *) |
ACE_Time_Value_T< TIME_POLICY > | gettimeofday (void) const |
void | set_time_policy (TIME_POLICY const &time_policy) |
int | putq (ACE_Message_Block *, ACE_Time_Value *timeout=0) |
int | getq (ACE_Message_Block *&mb, ACE_Time_Value *timeout=0) |
int | ungetq (ACE_Message_Block *, ACE_Time_Value *timeout=0) |
int | reply (ACE_Message_Block *mb, ACE_Time_Value *tv=0) |
int | put_next (ACE_Message_Block *msg, ACE_Time_Value *timeout=0) |
const ACE_TCHAR * | name (void) const |
ACE_Task< ACE_SYNCH_USE, TIME_POLICY > * | next (void) |
void | next (ACE_Task< ACE_SYNCH_USE, TIME_POLICY > *) |
ACE_Task< ACE_SYNCH_USE, TIME_POLICY > * | sibling (void) |
ACE_Module< ACE_SYNCH_USE, TIME_POLICY > * | module (void) const |
int | flush (u_long flag=ACE_Task_Flags::ACE_FLUSHALL) |
void | water_marks (ACE_IO_Cntl_Msg::ACE_IO_Cntl_Cmds, size_t) |
void | dump (void) const |
ACE_Task_Base (ACE_Thread_Manager *=0) | |
virtual | ~ACE_Task_Base (void) |
virtual int | open (void *args=0) |
virtual int | module_closed (void) |
virtual int | put (ACE_Message_Block *, ACE_Time_Value *=0) |
virtual int | activate (long flags=THR_NEW_LWP|THR_JOINABLE|THR_INHERIT_SCHED, int n_threads=1, int force_active=0, long priority=ACE_DEFAULT_THREAD_PRIORITY, int grp_id=-1, ACE_Task_Base *task=0, ACE_hthread_t thread_handles[]=0, void *stack[]=0, size_t stack_size[]=0, ACE_thread_t thread_ids[]=0, const char *thr_name[]=0) |
virtual int | wait (void) |
virtual int | suspend (void) |
virtual int | resume (void) |
int | grp_id (void) const |
void | grp_id (int) |
ACE_Thread_Manager * | thr_mgr (void) const |
void | thr_mgr (ACE_Thread_Manager *) |
int | is_reader (void) const |
int | is_writer (void) const |
size_t | thr_count (void) const |
ACE_thread_t | last_thread (void) const |
ACE_Service_Object (ACE_Reactor *=0) | |
virtual | ~ACE_Service_Object (void) |
virtual | ~ACE_Event_Handler (void) |
virtual ACE_HANDLE | get_handle (void) const |
virtual void | set_handle (ACE_HANDLE) |
virtual int | priority (void) const |
virtual void | priority (int priority) |
virtual int | handle_input (ACE_HANDLE fd=ACE_INVALID_HANDLE) |
virtual int | handle_output (ACE_HANDLE fd=ACE_INVALID_HANDLE) |
virtual int | handle_exception (ACE_HANDLE fd=ACE_INVALID_HANDLE) |
virtual int | handle_timeout (const ACE_Time_Value ¤t_time, const void *act=0) |
virtual int | handle_exit (ACE_Process *) |
virtual int | handle_close (ACE_HANDLE handle, ACE_Reactor_Mask close_mask) |
virtual int | handle_signal (int signum, siginfo_t *=0, ucontext_t *=0) |
virtual int | resume_handler (void) |
virtual int | handle_qos (ACE_HANDLE=ACE_INVALID_HANDLE) |
virtual int | handle_group_qos (ACE_HANDLE=ACE_INVALID_HANDLE) |
virtual void | reactor (ACE_Reactor *reactor) |
virtual ACE_Reactor * | reactor (void) const |
virtual ACE_Reactor_Timer_Interface * | reactor_timer_interface (void) const |
virtual Reference_Count | add_reference (void) |
virtual Reference_Count | remove_reference (void) |
Reference_Counting_Policy & | reference_counting_policy (void) |
ACE_Shared_Object (void) | |
virtual | ~ACE_Shared_Object (void) |
virtual int | init (int argc, ACE_TCHAR *argv[]) |
virtual int | fini (void) |
virtual int | info (ACE_TCHAR **info_string, size_t length=0) const |
Protected Member Functions | |
virtual int | svc (void) |
Task svc. | |
Protected Member Functions inherited from TAO_Notify_Worker_Task | |
virtual | ~TAO_Notify_Worker_Task () |
Destructor. |
Private Member Functions | |
virtual void | release (void) |
Release. |
Private Attributes | |
ACE_Auto_Ptr < TAO_Notify_Buffering_Strategy > | buffering_strategy_ |
The buffering strategy to use. | |
bool | shutdown_ |
Shutdown. | |
TAO_Notify_Timer_Queue::Ptr | timer_ |
The Queue based timer. |
Friends | |
class | TAO_Notify_Method_Request_Shutdown |
Additional Inherited Members | |
Public Types inherited from TAO_Notify_Worker_Task | |
typedef TAO_Notify_Refcountable_Guard_T < TAO_Notify_Worker_Task > | Ptr |
Public Types inherited from TAO_Notify_Refcountable | |
Static Public Member Functions inherited from ACE_Task< ACE_NULL_SYNCH > | |
static ACE_THR_FUNC_RETURN | svc_run (void *) |
static void | cleanup (void *object, void *params) |
Public Attributes inherited from ACE_Task< ACE_NULL_SYNCH > | |
ACE_Message_Queue < ACE_SYNCH_USE, TIME_POLICY > * | msg_queue_ |
bool | delete_msg_queue_ |
ACE_Module< ACE_SYNCH_USE, TIME_POLICY > * | mod_ |
ACE_Task< ACE_SYNCH_USE, TIME_POLICY > * | next_ |
ACE_ALLOC_HOOK_DECLARE | |
Protected Attributes inherited from ACE_Task< ACE_NULL_SYNCH > | |
size_t | thr_count_ |
ACE_Thread_Manager * | thr_mgr_ |
u_long | flags_ |
int | grp_id_ |
ACE_thread_t | last_thread_id_ |
Protected Attributes inherited from ACE_Task_Base | |
Protected Attributes inherited from ACE_Service_Object | |
Atomic_Reference_Count | reference_count_ |
Protected Attributes inherited from ACE_Event_Handler |
Implements a Thread Pool Worker Task.
TAO_Notify_ThreadPool_Task::TAO_Notify_ThreadPool_Task | ( | void | ) |
Constructor.
|
virtual |
Destructor.
TAO_Notify_Buffering_Strategy * TAO_Notify_ThreadPool_Task::buffering_strategy | ( | void | ) |
Provide access to the underlying buffering strategy.
|
virtual |
release reference to my self.
Reimplemented from ACE_Task< ACE_NULL_SYNCH >.
|
virtual |
Queue the request.
Implements TAO_Notify_Worker_Task.
|
virtual |
Call the base class init.
void TAO_Notify_ThreadPool_Task::init | ( | const NotifyExt::ThreadPoolParams & | tp_params, |
const TAO_Notify_AdminProperties::Ptr & | admin_properties | ||
) |
Activate the threadpool.
|
privatevirtual |
Release.
Implements TAO_Notify_Refcountable.
|
virtual |
Shutdown task.
Implements TAO_Notify_Worker_Task.
|
protectedvirtual |
Task svc.
Reimplemented from ACE_Task< ACE_NULL_SYNCH >.
|
virtual |
The object used by clients to register timers.
Implements TAO_Notify_Worker_Task.
|
virtual |
Update QoS Properties.
Reimplemented from TAO_Notify_Worker_Task.
|
friend |
|
private |
The buffering strategy to use.
|
private |
Shutdown.
|
private |
The Queue based timer.