projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add new masked cancellation mode
[musl]
/
src
/
thread
/
pthread_mutex_timedlock.c
diff --git
a/src/thread/pthread_mutex_timedlock.c
b/src/thread/pthread_mutex_timedlock.c
index
ae883f9
..
16241ee
100644
(file)
--- a/
src/thread/pthread_mutex_timedlock.c
+++ b/
src/thread/pthread_mutex_timedlock.c
@@
-1,6
+1,6
@@
#include "pthread_impl.h"
#include "pthread_impl.h"
-int pthread_mutex_timedlock(pthread_mutex_t *restrict m, const struct timespec *restrict at)
+int
__
pthread_mutex_timedlock(pthread_mutex_t *restrict m, const struct timespec *restrict at)
{
if ((m->_m_type&15) == PTHREAD_MUTEX_NORMAL
&& !a_cas(&m->_m_lock, 0, EBUSY))
{
if ((m->_m_type&15) == PTHREAD_MUTEX_NORMAL
&& !a_cas(&m->_m_lock, 0, EBUSY))
@@
-30,3
+30,5
@@
int pthread_mutex_timedlock(pthread_mutex_t *restrict m, const struct timespec *
}
return r;
}
}
return r;
}
+
+weak_alias(__pthread_mutex_timedlock, pthread_mutex_timedlock);