本文整理汇总了C++中ACE_Auto_Ptr::handler方法的典型用法代码示例。如果您正苦于以下问题:C++ ACE_Auto_Ptr::handler方法的具体用法?C++ ACE_Auto_Ptr::handler怎么用?C++ ACE_Auto_Ptr::handler使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ACE_Auto_Ptr
的用法示例。
在下文中一共展示了ACE_Auto_Ptr::handler方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: while
void
TAO_Leader_Follower::resume_events ()
{
// not need to obtain the lock, only called when holding the lock
while (!this->deferred_event_set_.is_empty ())
{
ACE_Auto_Ptr<Deferred_Event> event (this->deferred_event_set_.pop_front ());
// Send a notification to the reactor to cause the awakening of a new
// follower, if there is one already available.
ACE_Reactor *reactor = this->orb_core_->reactor ();
int const retval = reactor->notify (event->handler (), ACE_Event_Handler::READ_MASK);
if (TAO_debug_level > 2)
{
// @@todo: need to think about what is the action that
// we can take when we get here with an error?!
TAOLIB_DEBUG ((LM_DEBUG,
ACE_TEXT ("TAO (%P|%t) - TAO_Leader_Follower::resume_events, ")
ACE_TEXT ("an event handler[%d] has been resumed, ")
ACE_TEXT ("notified the reactor, retval=%d.\n"),
event->handler ()->get_handle (), retval));
}
}
}