NPushTickDisposer::~NPushTickDisposer()
{
    qDebug() << "Tick Disposer Destructor, gotta get rid of " << get_queue_count() << " logTicks";
    while(ticksQueue.count() > 0){
        NPushLogTick * dyingTick = ticksQueue.dequeue();
        delete dyingTick;
    }
    qDebug() << "Cleanup finished";
}
Example #2
0
//6.判断队列是否为空
Boolean is_queue_empty(Queue *queue)
{
    return get_queue_count(queue) == ZERO;
}