lib/c.zig | 1 + lib/c/pthread.zig | 57 ++++++++++++++++++++++ lib/libc/mingw/winpthreads/spinlock.c | 82 -------------------------------- lib/libc/musl/src/thread/pthread_spin_destroy.c | 6 --- lib/libc/musl/src/thread/pthread_spin_init.c | 6 --- lib/libc/musl/src/thread/pthread_spin_lock.c | 8 ---- lib/libc/musl/src/thread/pthread_spin_trylock.c | 7 --- lib/libc/musl/src/thread/pthread_spin_unlock.c | 7 --- lib/libc/wasi/thread-stub/pthread_spin_lock.c | 8 ---- lib/libc/wasi/thread-stub/pthread_spin_trylock.c | 8 ---- lib/libc/wasi/thread-stub/pthread_spin_unlock.c | 7 --- lib/std/c.zig | 20 +++++++- src/libs/mingw.zig | 1 - src/libs/musl.zig | 5 -- src/libs/wasi_libc.zig | 5 -- test/c.zig | 1 + test/c/pthread.zig | 20 ++++++++ 17 files changed, 98 insertions(+), 151 deletions(-)