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

33 lines
818 B
C
Vendored

#include "pthread_impl.h"
static int __pthread_tryjoin_np(pthread_t t, void **res)
{
/*
"The behavior is undefined if the value specified by the thread argument
to pthread_join() refers to the calling thread."
*/
return 0;
}
static int __pthread_timedjoin_np(pthread_t t, void **res, const struct timespec *at)
{
/*
"The behavior is undefined if the value specified by the thread argument
to pthread_join() refers to the calling thread."
*/
return 0;
}
int __pthread_join(pthread_t t, void **res)
{
/*
"The behavior is undefined if the value specified by the thread argument
to pthread_join() refers to the calling thread."
*/
return 0;
}
weak_alias(__pthread_tryjoin_np, pthread_tryjoin_np);
weak_alias(__pthread_timedjoin_np, pthread_timedjoin_np);
weak_alias(__pthread_join, pthread_join);