50705e8e3c
The macro RTE_VERIFY always checks a condition. It is optimized with "unlikely" hint. While this macro is well suited for test applications, it is preferred in libraries and examples to enable such check in debug mode. That's why the macro RTE_ASSERT is introduced to call RTE_VERIFY only if built with debug logs enabled. A lot of assert macros were duplicated and enabled with a specific flag. Removing these #ifdef allows to test these code branches more easily and avoid dead code pitfalls. The ENA_ASSERT is kept (in debug mode only) because it has more parameters to log. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> |
||
---|---|---|
.. | ||
arch/x86 | ||
common.mk | ||
lthread_api.h | ||
lthread_cond.c | ||
lthread_cond.h | ||
lthread_diag_api.h | ||
lthread_diag.c | ||
lthread_diag.h | ||
lthread_int.h | ||
lthread_mutex.c | ||
lthread_mutex.h | ||
lthread_objcache.h | ||
lthread_pool.h | ||
lthread_queue.h | ||
lthread_sched.c | ||
lthread_sched.h | ||
lthread_timer.h | ||
lthread_tls.c | ||
lthread_tls.h | ||
lthread.c | ||
lthread.h |