mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 22:04:21 +00:00
13 lines
299 B
C
Vendored
13 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);
|