26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# define OFOnceControlInitValue 0
#elif defined(OF_AMIGAOS) || !defined(OF_HAVE_THREADS)
typedef int OFOnceControl;
# define OFOnceControlInitValue 0
#endif
OF_ASSUME_NONNULL_BEGIN
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Executes the specified function exactly once in the application's
* lifetime, even in a multi-threaded environment.
|
>
>
|
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# define OFOnceControlInitValue 0
#elif defined(OF_AMIGAOS) || !defined(OF_HAVE_THREADS)
typedef int OFOnceControl;
# define OFOnceControlInitValue 0
#endif
OF_ASSUME_NONNULL_BEGIN
/** @file */
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Executes the specified function exactly once in the application's
* lifetime, even in a multi-threaded environment.
|