aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/wasi/thread-stub/pthread_mutex_timedlock.c
blob: 51f2606407e52ac841bfd630586fca9f77318fad (plain)
1
2
3
4
5
6
7
8
9
10
#include "pthread_impl.h"

int __pthread_mutex_timedlock(pthread_mutex_t *restrict m, const struct timespec *restrict at)
{
	/* "The pthread_mutex_timedlock() function may fail if: A deadlock condition was detected." */
	/* This means that we don't have to wait and then return timeout, we can just detect deadlock. */
	return pthread_mutex_lock(m);
}

weak_alias(__pthread_mutex_timedlock, pthread_mutex_timedlock);