Method_Request_Shutdown.cpp

Go to the documentation of this file.
00001 // Method_Request_Shutdown.cpp,v 1.10 2006/03/14 06:14:34 jtc Exp
00002 
00003 #include "orbsvcs/Notify/Method_Request_Shutdown.h"
00004 #include "orbsvcs/Notify/ThreadPool_Task.h"
00005 
00006 ACE_RCSID(Notify, TAO_Notify_Method_Request_Shutdown, "Method_Request_Shutdown.cpp,v 1.10 2006/03/14 06:14:34 jtc Exp")
00007 
00008 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00009 
00010 TAO_Notify_Method_Request_Shutdown::TAO_Notify_Method_Request_Shutdown (TAO_Notify_ThreadPool_Task* task)
00011   : task_ (task)
00012 {
00013 }
00014 
00015 TAO_Notify_Method_Request_Shutdown::~TAO_Notify_Method_Request_Shutdown ()
00016 {
00017 }
00018 
00019 TAO_Notify_Method_Request_Queueable*
00020 TAO_Notify_Method_Request_Shutdown::copy (void)
00021 {
00022   return new TAO_Notify_Method_Request_Shutdown (this->task_);
00023 }
00024 
00025 int
00026 TAO_Notify_Method_Request_Shutdown::execute (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
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 }
00034 
00035 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 13:24:12 2006 for TAO_CosNotification by doxygen 1.3.6