Differences From Artifact [b8f741bcba]:
- File
src/once.h
— part of check-in
[5358e9ea6a]
at
2019-08-01 20:14:35
on branch trunk
— Split threading.[hm] into multiple files
This allows the runtime to only link against the parts it needs, without
pulling in unnecessary parts like thread spawning, TLS and conditions. (user: js, size: 1022) [annotate] [blame] [check-ins using]
To Artifact [5ea0cd3af5]:
- File src/once.h — part of check-in [c26426e80f] at 2019-08-01 21:05:49 on branch trunk — Add missing extern "C" (user: js, size: 1089) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
27 28 29 30 31 32 33 34 | typedef volatile int of_once_t; # define OF_ONCE_INIT 0 #elif !defined(OF_HAVE_THREADS) typedef int of_once_t; # define OF_ONCE_INIT 0 #endif extern void of_once(of_once_t *control, void (*func)(void)); | > > > > > > | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | typedef volatile int of_once_t; # define OF_ONCE_INIT 0 #elif !defined(OF_HAVE_THREADS) typedef int of_once_t; # define OF_ONCE_INIT 0 #endif #ifdef __cplusplus extern "C" { #endif extern void of_once(of_once_t *control, void (*func)(void)); #ifdef __cplusplus } #endif |