mirror of
https://github.com/fluencelabs/musl
synced 2025-06-09 04:51:34 +00:00
9 lines
175 B
C
9 lines
175 B
C
|
#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;
|
||
|
}
|