本文整理汇总了C++中ihash::remove方法的典型用法代码示例。如果您正苦于以下问题:C++ ihash::remove方法的具体用法?C++ ihash::remove怎么用?C++ ihash::remove使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ihash
的用法示例。
在下文中一共展示了ihash::remove方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: waitpid
void
chldcb_check ()
{
for (;;) {
int status;
pid_t pid = waitpid (-1, &status, WNOHANG);
if (pid == 0 || pid == -1)
break;
if (child *c = chldcbs[pid]) {
chldcbs.remove (c);
#ifdef WRAP_DEBUG
if (callback_trace & CBTR_CHLD)
warn ("CALLBACK_TRACE: %schild pid %d (status %d) %s <- %s\n",
timestring (), pid, status, c->cb->dest, c->cb->line);
#endif /* WRAP_DEBUG */
STOP_ACHECK_TIMER ();
sfs_leave_sel_loop ();
(*c->cb) (status);
START_ACHECK_TIMER ();
delete c;
} else if (sfs_core::g_zombie_collect) {
zombie_t *z = zombies[pid];
if (z) {
z->_status = status;
} else {
zombies.insert (New zombie_t (pid, status));
}
}
}
}
示例2: assert
void
closesim::fhfree (fhtimer *fht)
{
assert (fht->serv == this);
fq->timeq.remove (fht);
fhtab.remove (fht);
fq->minopen++;
delete fht;
}
示例3: if
void
chldcb (pid_t pid, cbi::ptr cb)
{
if (child *c = chldcbs[pid]) {
chldcbs.remove (c);
delete c;
}
zombie_t *z;
if ((z = zombies[pid])) {
int s = z->_status;
zombies.remove (z);
delete z;
if (cb)
(*cb) (s);
} else if (cb) {
chldcbs.insert (New child (pid, cb));
}
}
示例4:
inline
objref::~objref ()
{
objreftab.remove (this);
}
示例5:
sfssrv_exec::~sfssrv_exec ()
{
exectab.remove (this);
}
示例6:
afsdirentry::~afsdirentry ()
{
node->remlink ();
dir->entries.remove (this);
cookietab.remove (this);
}