本文整理汇总了C++中InterthreadQueue::write方法的典型用法代码示例。如果您正苦于以下问题:C++ InterthreadQueue::write方法的具体用法?C++ InterthreadQueue::write怎么用?C++ InterthreadQueue::write使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类InterthreadQueue
的用法示例。
在下文中一共展示了InterthreadQueue::write方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: qWriter
void* qWriter(void*)
{
int *p;
for (int i=0; i<20; i++) {
p = new int;
*p = i;
COUT("queue write " << *p);
gQ.write(p);
if (random()%2) sleep(1);
}
p = new int;
*p = -1;
gQ.write(p);
return NULL;
}
示例2: enqueueRach
void enqueueRach(RachInfo *rip)
{
// TODO: Phones next to the base station will include the operator's.
// We should service them first, even if they are just LUR.
// This is too chatty.
//LOG(INFO) << "**Incoming Burst**"<<LOGVAR(lur)<<LOGVAR(gprs)
//<<LOGVAR(when)<<LOGVAR(age)<<LOGVAR2("TE",timingError)<<LOGVAR(RSSI)<<LOGHEX(RA);
bool deleteMe = false;
preallocateChForRach(rip,&deleteMe);
if (deleteMe) {
delete rip;
return;
}
gRachq.write(rip);
}
示例3: addPage
void addPage(NewPagingEntry *npe) { mPageQ.write(npe); }