Revert some changes which don't have proper dependencies.
[mono-project.git] / mono / utils / mono-threads-debug.h
blobfaf077a342d5247604431ffddfd065b1a482f722
1 /**
2 * \file
3 */
5 #ifndef __MONO_UTILS_MONO_THREADS_DEBUG_H__
6 #define __MONO_UTILS_MONO_THREADS_DEBUG_H__
8 #include <config.h>
9 #include <glib.h>
11 /* Logging - enable them below if you need specific logging for the category you need */
12 #define MOSTLY_ASYNC_SAFE_FPRINTF(handle, ...) do { \
13 g_async_safe_fprintf (handle, __VA_ARGS__); \
14 } while (0)
16 #define MOSTLY_ASYNC_SAFE_PRINTF(...) MOSTLY_ASYNC_SAFE_FPRINTF(1, __VA_ARGS__);
18 #if 1
19 #define THREADS_DEBUG(...)
20 #else
21 #define THREADS_DEBUG MOSTLY_ASYNC_SAFE_PRINTF
22 #endif
24 #if 1
25 #define THREADS_STW_DEBUG(...)
26 #else
27 #define THREADS_STW_DEBUG MOSTLY_ASYNC_SAFE_PRINTF
28 #endif
30 #if 1
31 #define THREADS_SUSPEND_DEBUG(...)
32 #else
33 #define THREADS_SUSPEND_DEBUG MOSTLY_ASYNC_SAFE_PRINTF
34 #endif
36 #if 1
37 #define THREADS_STATE_MACHINE_DEBUG(...)
38 #else
39 #define THREADS_STATE_MACHINE_DEBUG MOSTLY_ASYNC_SAFE_PRINTF
40 #endif
42 #if 1
43 #define THREADS_INTERRUPT_DEBUG(...)
44 #else
45 #define THREADS_INTERRUPT_DEBUG MOSTLY_ASYNC_SAFE_PRINTF
46 #endif
48 #endif /* __MONO_UTILS_MONO_THREADS_DEBUG_H__ */