ARGOBOTS
1.1
src
include
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(FILE *fh,
const
char
*format, ...);
14
void
ABTI_log_pool_push(
ABTI_pool
*p_pool,
ABT_unit
unit);
15
void
ABTI_log_pool_remove(
ABTI_pool
*p_pool,
ABT_unit
unit);
16
void
ABTI_log_pool_pop(
ABTI_pool
*p_pool,
ABT_unit
unit);
17
18
#define LOG_DEBUG(fmt, ...) ABTI_log_debug(stderr, fmt, __VA_ARGS__)
19
20
#define LOG_DEBUG_POOL_PUSH(p_pool, unit) ABTI_log_pool_push(p_pool, unit)
21
#define LOG_DEBUG_POOL_REMOVE(p_pool, unit) ABTI_log_pool_remove(p_pool, unit)
22
#define LOG_DEBUG_POOL_POP(p_pool, unit) ABTI_log_pool_pop(p_pool, unit)
23
24
#else
25
26
#define LOG_DEBUG(fmt, ...)
27
28
#define LOG_DEBUG_POOL_PUSH(p_pool, unit)
29
#define LOG_DEBUG_POOL_REMOVE(p_pool, unit)
30
#define LOG_DEBUG_POOL_POP(p_pool, unit)
31
32
#endif
/* ABT_CONFIG_USE_DEBUG_LOG */
33
34
#endif
/* ABTI_LOG_H_INCLUDED */
ABTI_pool
Definition:
abti.h:327
ABT_unit
struct ABT_unit_opaque * ABT_unit
Work unit handle type for scheduling.
Definition:
abt.h:869
abt_config.h
Generated on Thu Apr 1 2021 07:02:51 for ARGOBOTS by
1.8.17