mirror of
https://github.com/fluencelabs/musl
synced 2025-06-28 14:11:56 +00:00
initial check-in, version 0.5.0
This commit is contained in:
8
src/thread/pthread_rwlock_rdlock.c
Normal file
8
src/thread/pthread_rwlock_rdlock.c
Normal file
@ -0,0 +1,8 @@
|
||||
#include "pthread_impl.h"
|
||||
|
||||
int pthread_rwlock_rdlock(pthread_rwlock_t *rw)
|
||||
{
|
||||
while (pthread_rwlock_tryrdlock(rw))
|
||||
__wait(&rw->__wrlock, &rw->__waiters, 1, 0);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user