Differences From Artifact [72d5ba7049]:
- File src/OFOnce.m — part of check-in [28230080b3] at 2022-06-18 17:30:36 on branch trunk — Make OFOnce() public (user: js, size: 1635) [annotate] [blame] [check-ins using] [more...]
To Artifact [644a3b7851]:
- File src/OFOnce.m — part of check-in [26ddd2e4e4] at 2024-01-02 17:17:25 on branch trunk — Update copyright (user: js, size: 1679) [annotate] [blame] [check-ins using] [more...]
1 | 1 2 3 4 5 6 7 8 9 | - + | /* |
| ︙ | |||
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | + + |
#import "OFOnce.h"
#if defined(OF_HAVE_THREADS) && defined(OF_HAVE_ATOMIC_OPS)
# import "OFAtomic.h"
# import "OFPlainMutex.h"
#endif
#ifdef OF_AMIGAOS
# define Class IntuitionClass
# include <proto/exec.h>
# undef Class
#endif
void
OFOnce(OFOnceControl *control, void (*function)(void))
{
#if !defined(OF_HAVE_THREADS)
if (*control == 0) {
|
| ︙ |