From e16f70f45210294321a88f23c85ac45046577adc Mon Sep 17 00:00:00 2001 From: Jens Gustedt Date: Sat, 6 Sep 2014 21:32:53 -0400 Subject: add C11 thread functions operating on tss_t and once_flag These all have POSIX equivalents, but aside from tss_get, they all have minor changes to the signature or return value and thus need to exist as separate functions. --- src/thread/call_once.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/thread/call_once.c (limited to 'src/thread/call_once.c') 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 + +int __pthread_once(once_flag *, void (*)(void)); + +void call_once(once_flag *flag, void (*func)(void)) +{ + __pthread_once(flag, func); +} -- cgit v1.2.1