X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fperformance-thread%2Fcommon%2Flthread_queue.h;h=2c55fcec72828851c82656a2a329dd39f21054b1;hb=36135ae0943bfa87e5607a23d88adbe7d82243b7;hp=71f8c734c93d248a4f057572342b15524150c885;hpb=116819b9ed0da46ba09b927a9d54795e5f56cbdc;p=dpdk.git diff --git a/examples/performance-thread/common/lthread_queue.h b/examples/performance-thread/common/lthread_queue.h index 71f8c734c9..2c55fcec72 100644 --- a/examples/performance-thread/common/lthread_queue.h +++ b/examples/performance-thread/common/lthread_queue.h @@ -129,7 +129,7 @@ _lthread_queue_create(const char *name) /* allocated stub node */ stub = _qnode_alloc(); - LTHREAD_ASSERT(stub); + RTE_ASSERT(stub); if (name != NULL) strncpy(new_queue->name, name, sizeof(new_queue->name)); @@ -153,7 +153,7 @@ _lthread_queue_create(const char *name) static inline int __attribute__ ((always_inline)) _lthread_queue_empty(struct lthread_queue *q) { - return (q->tail == q->head); + return q->tail == q->head; }