Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / utils / mono-once.h
1 /**
2  * \file
3  */
4
5 #ifndef __MONO_ONCE_H__
6 #define __MONO_ONCE_H__
7
8 #include "mono-lazy-init.h"
9
10 typedef mono_lazy_init_t mono_once_t;
11
12 #define MONO_ONCE_INIT MONO_LAZY_INIT_STATUS_NOT_INITIALIZED
13
14 static inline void
15 mono_once (mono_once_t *once, void (*once_init) (void))
16 {
17         mono_lazy_initialize (once, once_init);
18 }
19
20 #endif /* __MONO_ONCE_H__ */