1 #ifndef __MONO_METADATA_LOCK_TRACER_H__
2 #define __MONO_METADATA_LOCK_TRACER_H__
4 /*This is a private header*/
7 #include "mono/utils/mono-compiler.h"
17 DomainJitCodeHashLock
,
22 void mono_locks_tracer_init (void) MONO_INTERNAL
;
24 void mono_locks_lock_acquired (RuntimeLocks kind
, gpointer lock
) MONO_INTERNAL
;
25 void mono_locks_lock_released (RuntimeLocks kind
, gpointer lock
) MONO_INTERNAL
;
29 #define mono_locks_tracer_init() do {} while (0)
31 #define mono_locks_lock_acquired(__UNUSED0, __UNUSED1) do {} while (0)
32 #define mono_locks_lock_released(__UNUSED0, __UNUSED1) do {} while (0)
36 #define mono_locks_acquire(LOCK, NAME) do { \
37 EnterCriticalSection (LOCK); \
38 mono_locks_lock_acquired (NAME, LOCK); \
41 #define mono_locks_release(LOCK, NAME) do { \
42 mono_locks_lock_released (NAME, LOCK); \
43 LeaveCriticalSection (LOCK); \
48 #endif /* __MONO_METADATA_LOCK_TRACER_H__ */