zig/lib/libc/wasi/thread-stub/pthread_detach.c
2025-08-20 19:18:11 +02:00

14 lines
299 B
C
Vendored

#include "pthread_impl.h"
static int __pthread_detach(pthread_t t)
{
/*
If we are the only thread, when we exit the whole process exits.
So the storage will be reclaimed no matter what.
*/
return 0;
}
weak_alias(__pthread_detach, pthread_detach);
weak_alias(__pthread_detach, thrd_detach);