blob: 74ca99ef829c10e391562098098225b24f3026de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// $Id$
#include "orbsvcs/Notify/Method_Request_Shutdown.h"
#include "orbsvcs/Notify/ThreadPool_Task.h"
ACE_RCSID(Notify, TAO_Notify_Method_Request_Shutdown, "$Id$")
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
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_Queueable*
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;
}
TAO_END_VERSIONED_NAMESPACE_DECL
|