mirror of
https://github.com/ziglang/zig.git
synced 2025-12-07 23:03:08 +00:00
12 lines
288 B
C
Vendored
12 lines
288 B
C
Vendored
#include "pthread_impl.h"
|
|
|
|
int pthread_getattr_np(pthread_t t, pthread_attr_t *a)
|
|
{
|
|
*a = (pthread_attr_t){0};
|
|
/* Can't join main thread. */
|
|
a->_a_detach = PTHREAD_CREATE_DETACHED;
|
|
/* WASI doesn't have memory protection required for stack guards. */
|
|
a->_a_guardsize = 0;
|
|
return 0;
|
|
}
|