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