[amd64] Fix mingw-w64 build. (#4519)
[mono-project.git] / mono / utils / mono-once.h
blob0021ac3f9bad0f08272cb4bf30eaaeb5f86bc488
2 #ifndef __MONO_ONCE_H__
3 #define __MONO_ONCE_H__
5 #include "mono-lazy-init.h"
7 typedef mono_lazy_init_t mono_once_t;
9 #define MONO_ONCE_INIT MONO_LAZY_INIT_STATUS_NOT_INITIALIZED
11 static inline void
12 mono_once (mono_once_t *once, void (*once_init) (void))
14 mono_lazy_initialize (once, once_init);
17 #endif /* __MONO_ONCE_H__ */