SCPerfSyncCountersIfSignalled(tv, 0);
SCMutexLock(&q->mutex_q);
- while (q->len == 0) {
+ if (q->len == 0) {
/* if we have no packets in queue, wait... */
SCCondWait(&q->cond_q, &q->mutex_q);
}
SCMutexLock(&q->mutex_q);
- while (q->len == 0) {
+ if (q->len == 0) {
/* if we have no packets in queue, wait... */
SCCondWait(&q->cond_q, &q->mutex_q);
}
SCDQGenericQData *TmqhInputSimpleOnQ(SCDQDataQueue *q)
{
SCMutexLock(&q->mutex_q);
- while (q->len == 0) {
+ if (q->len == 0) {
/* if we have no packets in queue, wait... */
SCCondWait(&q->cond_q, &q->mutex_q);
}