ARGOBOTS  dce6e727ffc4ca5b3ffc04cb9517c6689be51ec5
abti_log.h
Go to the documentation of this file.
1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
2 /*
3  * See COPYRIGHT in top-level directory.
4  */
5 
6 #ifndef ABTI_LOG_H_INCLUDED
7 #define ABTI_LOG_H_INCLUDED
8 
9 #include "abt_config.h"
10 
11 #ifdef ABT_CONFIG_USE_DEBUG_LOG
12 
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,
19  size_t num);
20 void ABTI_log_pool_push_many(ABTI_pool *p_pool, const ABT_unit *units,
21  size_t num);
22 
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)
30 
31 #else
32 
33 #define LOG_DEBUG_POOL_PUSH(p_pool, unit) \
34  do { \
35  } while (0)
36 #define LOG_DEBUG_POOL_REMOVE(p_pool, unit) \
37  do { \
38  } while (0)
39 #define LOG_DEBUG_POOL_POP(p_pool, thread) \
40  do { \
41  } while (0)
42 #define LOG_DEBUG_POOL_POP_MANY(p_pool, threads, num) \
43  do { \
44  } while (0)
45 #define LOG_DEBUG_POOL_PUSH_MANY(p_pool, units, num) \
46  do { \
47  } while (0)
48 
49 #endif /* ABT_CONFIG_USE_DEBUG_LOG */
50 
51 #endif /* ABTI_LOG_H_INCLUDED */
ABT_thread
struct ABT_thread_opaque * ABT_thread
Work unit handle type.
Definition: abt.h:932
ABT_unit
struct ABT_unit_opaque * ABT_unit
Work unit handle type for scheduling.
Definition: abt.h:911
abt_config.h