diff options
Diffstat (limited to '05/musl-0.6.0/src/thread/pthread_spin_init.c')
-rw-r--r-- | 05/musl-0.6.0/src/thread/pthread_spin_init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/05/musl-0.6.0/src/thread/pthread_spin_init.c b/05/musl-0.6.0/src/thread/pthread_spin_init.c new file mode 100644 index 0000000..681881c --- /dev/null +++ b/05/musl-0.6.0/src/thread/pthread_spin_init.c @@ -0,0 +1,6 @@ +#include "pthread_impl.h" + +int pthread_spin_init(pthread_spinlock_t *s, int shared) +{ + return *s = 0; +} |