6 #ifndef ABTI_LOG_H_INCLUDED
7 #define ABTI_LOG_H_INCLUDED
11 #ifdef ABT_CONFIG_USE_DEBUG_LOG
13 void ABTI_log_debug(
const char *format, ...);
14 void ABTI_log_debug_thread(
const char *msg, ABTI_thread *p_thread);
15 void ABTI_log_pool_push(ABTI_pool *p_pool,
ABT_unit unit);
16 void ABTI_log_pool_remove(ABTI_pool *p_pool,
ABT_unit unit);
17 void ABTI_log_pool_pop(ABTI_pool *p_pool,
ABT_thread thread);
18 void ABTI_log_pool_pop_many(ABTI_pool *p_pool,
const ABT_thread *threads,
20 void ABTI_log_pool_push_many(ABTI_pool *p_pool,
const ABT_unit *units,
23 #define LOG_DEBUG_POOL_PUSH(p_pool, unit) ABTI_log_pool_push(p_pool, unit)
24 #define LOG_DEBUG_POOL_REMOVE(p_pool, unit) ABTI_log_pool_remove(p_pool, unit)
25 #define LOG_DEBUG_POOL_POP(p_pool, thread) ABTI_log_pool_pop(p_pool, thread)
26 #define LOG_DEBUG_POOL_POP_MANY(p_pool, threads, num) \
27 ABTI_log_pool_pop_many(p_pool, threads, num)
28 #define LOG_DEBUG_POOL_PUSH_MANY(p_pool, units, num) \
29 ABTI_log_pool_push_many(p_pool, units, num)
33 #define LOG_DEBUG_POOL_PUSH(p_pool, unit) \
36 #define LOG_DEBUG_POOL_REMOVE(p_pool, unit) \
39 #define LOG_DEBUG_POOL_POP(p_pool, thread) \
42 #define LOG_DEBUG_POOL_POP_MANY(p_pool, threads, num) \
45 #define LOG_DEBUG_POOL_PUSH_MANY(p_pool, units, num) \