mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
14 lines
299 B
C
Vendored
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);
|