1570af302Sopenharmony_ci#include "pthread_impl.h"
2570af302Sopenharmony_ci
3570af302Sopenharmony_ciint pthread_rwlock_init(pthread_rwlock_t *restrict rw, const pthread_rwlockattr_t *restrict a)
4570af302Sopenharmony_ci{
5570af302Sopenharmony_ci	__builtin_memset(rw, 0, sizeof(pthread_rwlock_t));
6570af302Sopenharmony_ci	if (a) rw->_rw_shared = a->__attr[0]*128;
7570af302Sopenharmony_ci	return 0;
8570af302Sopenharmony_ci}
9