diff options
Diffstat (limited to 'src/thread/call_once.c')
-rw-r--r-- | src/thread/call_once.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/thread/call_once.c b/src/thread/call_once.c new file mode 100644 index 00000000..a7bc9353 --- /dev/null +++ b/src/thread/call_once.c @@ -0,0 +1,8 @@ +#include <threads.h> + +int __pthread_once(once_flag *, void (*)(void)); + +void call_once(once_flag *flag, void (*func)(void)) +{ + __pthread_once(flag, func); +} |