projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reorganize pthread data structures and move the definitions to alltypes.h
[musl]
/
src
/
thread
/
pthread_rwlock_trywrlock.c
diff --git
a/src/thread/pthread_rwlock_trywrlock.c
b/src/thread/pthread_rwlock_trywrlock.c
index
c029b87
..
1bcf7c9
100644
(file)
--- a/
src/thread/pthread_rwlock_trywrlock.c
+++ b/
src/thread/pthread_rwlock_trywrlock.c
@@
-2,12
+2,12
@@
int pthread_rwlock_trywrlock(pthread_rwlock_t *rw)
{
int pthread_rwlock_trywrlock(pthread_rwlock_t *rw)
{
- if (a_xchg(&rw->__wrlock, 1))
+ if (a_xchg(&rw->_
rw
_wrlock, 1))
return EAGAIN;
return EAGAIN;
- if (rw->__readers) {
- a_store(&rw->__wrlock, 0);
+ if (rw->_
rw
_readers) {
+ a_store(&rw->_
rw
_wrlock, 0);
return EAGAIN;
}
return EAGAIN;
}
- rw->__owner = pthread_self()->tid;
+ rw->_
rw
_owner = pthread_self()->tid;
return 0;
}
return 0;
}