本文整理汇总了C++中Invocation::set_target方法的典型用法代码示例。如果您正苦于以下问题:C++ Invocation::set_target方法的具体用法?C++ Invocation::set_target怎么用?C++ Invocation::set_target使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Invocation
的用法示例。
在下文中一共展示了Invocation::set_target方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void
Log::handle_msg_octets ()
{
int pos = this->dump_target_->add_octets(this->line_, this->offset_);
if (this->dump_target_ == &this->unknown_msg_)
{
for (ACE_DLList_Iterator<Thread> t_iter(this->giop_waiters_);
!t_iter.done();
t_iter.advance())
{
Thread *th = 0;
t_iter.next(th);
GIOP_Buffer *waiter = th->giop_target();
if (waiter == 0)
continue;
if (waiter->matches (this->dump_target_))
{
waiter->transfer_from (this->dump_target_);
this->dump_target_ = waiter;
t_iter.remove();
break;
}
}
}
if (pos == -1) // done
{
Invocation *inv = this->dump_target_->owner();
if (inv != 0)
{
size_t len = 0;
const char *oid = this->dump_target_->target_oid(len);
if (oid != 0)
inv->set_target (oid, len);
}
else
{
if (this->dump_target_ == &this->unknown_msg_)
ACE_ERROR ((LM_ERROR, "%d dump ended with no target owner\n", this->offset_));
}
this->dump_target_ = 0;
this->unknown_msg_.reset();
}
}