blob: 705ebf295f9165791269941609de3c179724bdf7 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
// $Id$
#include "Reactive_Task.h"
#if ! defined (__ACE_INLINE__)
#include "Reactive_Task.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(RT_Notify, TAO_NS_Reactive_Task, "$Id$")
#include "Timer_Reactor.h"
TAO_NS_Reactive_Task::TAO_NS_Reactive_Task (void)
:timer_ (0)
{
}
TAO_NS_Reactive_Task::~TAO_NS_Reactive_Task ()
{
}
void
TAO_NS_Reactive_Task::init (TAO_NS_AdminProperties_var& /*admin_properties*/ ACE_ENV_ARG_DECL)
{
ACE_NEW_THROW_EX (this->timer_,
TAO_NS_Timer_Reactor (),
CORBA::NO_MEMORY ());
}
void
TAO_NS_Reactive_Task::release (void)
{
this->timer_->_decr_refcnt ();
delete this; //TODO: Release via factory.
}
void
TAO_NS_Reactive_Task::shutdown (void)
{
}
void
TAO_NS_Reactive_Task::exec (TAO_NS_Method_Request& method_request)
{
ACE_DECLARE_NEW_CORBA_ENV;
method_request.execute (ACE_ENV_SINGLE_ARG_PARAMETER);
}
TAO_NS_Timer*
TAO_NS_Reactive_Task::timer (void)
{
this->timer_->_incr_refcnt ();
return this->timer_;
}
|