Public Member Functions | Private Attributes

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_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.

  : task_ (task)
{
}

TAO_Notify_Method_Request_Shutdown::~TAO_Notify_Method_Request_Shutdown (  )  [virtual]

Destructor.

Definition at line 15 of file Method_Request_Shutdown.cpp.

{
}


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.

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

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.

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


Member Data Documentation

Definition at line 52 of file Method_Request_Shutdown.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines