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