diff options
Diffstat (limited to 'src/thread/pthread_rwlock_trywrlock.c')
-rw-r--r-- | src/thread/pthread_rwlock_trywrlock.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/thread/pthread_rwlock_trywrlock.c b/src/thread/pthread_rwlock_trywrlock.c index bb3d3a99..64d9d312 100644 --- a/src/thread/pthread_rwlock_trywrlock.c +++ b/src/thread/pthread_rwlock_trywrlock.c @@ -1,7 +1,9 @@ #include "pthread_impl.h" -int pthread_rwlock_trywrlock(pthread_rwlock_t *rw) +int __pthread_rwlock_trywrlock(pthread_rwlock_t *rw) { if (a_cas(&rw->_rw_lock, 0, 0x7fffffff)) return EBUSY; return 0; } + +weak_alias(__pthread_rwlock_trywrlock, pthread_rwlock_trywrlock); |