📄 method_request_shutdown.cpp
字号:
// Method_Request_Shutdown.cpp,v 1.6 2003/07/06 21:41:59 pradeep Exp
#include "Method_Request_Shutdown.h"
#include "ThreadPool_Task.h"
#if ! defined (__ACE_INLINE__)
#include "Method_Request_Shutdown.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Notify, TAO_Notify_Method_Request_Shutdown, "Method_Request_Shutdown.cpp,v 1.6 2003/07/06 21:41:59 pradeep Exp")
TAO_Notify_Method_Request_Shutdown::TAO_Notify_Method_Request_Shutdown (TAO_Notify_ThreadPool_Task* task)
: task_ (task)
{
}
TAO_Notify_Method_Request_Shutdown::~TAO_Notify_Method_Request_Shutdown ()
{
}
TAO_Notify_Method_Request*
TAO_Notify_Method_Request_Shutdown::copy (void)
{
return new TAO_Notify_Method_Request_Shutdown (this->task_);
}
int
TAO_Notify_Method_Request_Shutdown::execute (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
// 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;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -