本文整理汇总了C++中Invocation::set_octets方法的典型用法代码示例。如果您正苦于以下问题:C++ Invocation::set_octets方法的具体用法?C++ Invocation::set_octets怎么用?C++ Invocation::set_octets使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Invocation
的用法示例。
在下文中一共展示了Invocation::set_octets方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void
Log::parse_cleanup_queue_i (void)
{
char *hpos = ACE_OS::strchr(this->info_,'[');
long handle = ACE_OS::strtol(hpos+1,0,10);
PeerProcess *pp = this->hostproc_->find_peer(handle);
if (pp == 0)
{
ACE_ERROR ((LM_ERROR,
"%d: cleanup queue, error parsing %C, can't find peer "
"for handle %d, text = %s\n",
this->offset_, this->origin_.c_str(), handle, this->info_));
return;
}
Thread *original_thr = this->thr_;
GIOP_Buffer *target = original_thr->giop_target();
if (target == 0 || target->owner() != 0)
{
original_thr = this->hostproc_->find_thread_for_handle (handle);
if (original_thr == 0)
{
ACE_ERROR ((LM_ERROR,
"%d: cleanup queue, no original "
"thread found, handle %d\n",
this->offset_, handle));
return;
}
target = original_thr->giop_target();
}
if (target != 0 && target->cur_size() == 0 && original_thr->has_dup())
{
ACE_ERROR ((LM_ERROR, "%d: cleanup queue, swapping targets for thread %d\n",
this->offset_, original_thr->id()));
original_thr->swap_target();
}
original_thr->set_giop_target(0);
original_thr->active_handle (0);
if (target != 0 && target->owner() == 0)
{
size_t rid = target->actual_req_id();
char mtype = target->type();
Invocation *inv = pp->find_invocation(rid, handle);
if (inv == 0)
{
ACE_ERROR ((LM_ERROR,
"%d: Cleanup queue detected, "
"could not find invocation for rid = %d on thread %d\n",
this->offset_, rid, original_thr->id()));
rid = target->expected_req_id();
inv = pp->find_invocation (rid, handle);
if (inv == 0)
{
ACE_ERROR ((LM_ERROR,
"%d, Cleanup queue still failed to find rid %d, on thread %d\n",
this->offset_, rid, original_thr->id()));
return;
}
original_thr->exit_wait(pp, this->offset_);
mtype = target->expected_type();
}
inv->set_octets (mtype == 0, target);
size_t len = 0;
const char *oid = target->target_oid(len);
if (mtype == 0 && len > 0)
inv->set_target (oid, len);
}
}