[interp] Remove unconditional branches to next instruction (#15939)
[mono-project.git] / mono / utils / mono-once.h
blob754ae7dd6cc75e475fc6c5aee682f271dc84c6e9
1 /**
2 * \file
3 */
5 #ifndef __MONO_ONCE_H__
6 #define __MONO_ONCE_H__
8 #include "mono-lazy-init.h"
10 typedef mono_lazy_init_t mono_once_t;
12 #define MONO_ONCE_INIT MONO_LAZY_INIT_STATUS_NOT_INITIALIZED
14 static inline void
15 mono_once (mono_once_t *once, void (*once_init) (void))
17 mono_lazy_initialize (once, once_init);
20 #endif /* __MONO_ONCE_H__ */