📄 reactive_task.cpp
字号:
// Reactive_Task.cpp,v 1.9 2003/07/06 21:41:59 pradeep Exp
#include "Reactive_Task.h"
#if ! defined (__ACE_INLINE__)
#include "Reactive_Task.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Notify, TAO_Notify_Reactive_Task, "Reactive_Task.cpp,v 1.9 2003/07/06 21:41:59 pradeep Exp")
#include "Timer_Reactor.h"
TAO_Notify_Reactive_Task::TAO_Notify_Reactive_Task (void)
:timer_ (0)
{
}
TAO_Notify_Reactive_Task::~TAO_Notify_Reactive_Task ()
{
}
void
TAO_Notify_Reactive_Task::init (TAO_Notify_AdminProperties_var& /*admin_properties*/ ACE_ENV_ARG_DECL)
{
ACE_NEW_THROW_EX (this->timer_,
TAO_Notify_Timer_Reactor (),
CORBA::NO_MEMORY ());
}
void
TAO_Notify_Reactive_Task::release (void)
{
this->timer_->_decr_refcnt ();
delete this; //TODO: Release via factory.
}
void
TAO_Notify_Reactive_Task::shutdown (void)
{
}
void
TAO_Notify_Reactive_Task::execute (TAO_Notify_Method_Request_No_Copy& method_request ACE_ENV_ARG_DECL)
{
method_request.execute (ACE_ENV_SINGLE_ARG_PARAMETER);
}
TAO_Notify_Timer*
TAO_Notify_Reactive_Task::timer (void)
{
this->timer_->_incr_refcnt ();
return this->timer_;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -