TAO_Notify_Method_Request_Shutdown Class Reference

Shutdown message for the ThreadPool_Task. More...

#include <Method_Request_Shutdown.h>

Inheritance diagram for TAO_Notify_Method_Request_Shutdown:

Inheritance graph
[legend]
Collaboration diagram for TAO_Notify_Method_Request_Shutdown:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Notify_Method_Request_Shutdown (TAO_Notify_ThreadPool_Task *task)
 Constructor.
virtual ~TAO_Notify_Method_Request_Shutdown ()
 Destructor.
TAO_Notify_Method_Request_Queueablecopy (void)
 Create a copy of this object.
virtual int execute (void)
 Execute the Request.

Private Attributes

TAO_Notify_ThreadPool_Tasktask_

Detailed Description

Shutdown message for the ThreadPool_Task.

Definition at line 35 of file Method_Request_Shutdown.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Notify_Method_Request_Shutdown::TAO_Notify_Method_Request_Shutdown ( TAO_Notify_ThreadPool_Task task  ) 

Constructor.

Definition at line 10 of file Method_Request_Shutdown.cpp.

Referenced by copy().

00011   : task_ (task)
00012 {
00013 }

TAO_Notify_Method_Request_Shutdown::~TAO_Notify_Method_Request_Shutdown (  )  [virtual]

Destructor.

Definition at line 15 of file Method_Request_Shutdown.cpp.

00016 {
00017 }


Member Function Documentation

TAO_Notify_Method_Request_Queueable * TAO_Notify_Method_Request_Shutdown::copy ( void   )  [virtual]

Create a copy of this object.

Reimplemented from TAO_Notify_Method_Request_Queueable.

Definition at line 20 of file Method_Request_Shutdown.cpp.

References TAO_Notify_Method_Request_Shutdown().

00021 {
00022   return new TAO_Notify_Method_Request_Shutdown (this->task_);
00023 }

int TAO_Notify_Method_Request_Shutdown::execute ( void   )  [virtual]

Execute the Request.

Implements TAO_Notify_Method_Request.

Definition at line 26 of file Method_Request_Shutdown.cpp.

References ACE_Message_Queue<>::deactivate(), ACE_Task<>::msg_queue(), and task_.

00027 {
00028   // Shut down the scheduler by deactivating the activation queue's
00029   // underlying message queue - should pop all worker threads off their
00030   // wait and they'll exit.
00031   this->task_->msg_queue ()->deactivate ();
00032   return -1;
00033 }


Member Data Documentation

TAO_Notify_ThreadPool_Task* TAO_Notify_Method_Request_Shutdown::task_ [private]

Definition at line 52 of file Method_Request_Shutdown.h.

Referenced by execute().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:46:23 2010 for TAO_CosNotification by  doxygen 1.4.7