202  5.    

 5.4. ,    -

                       

#include <pthread.h>

       int pthread_rwlock_init(

pthread_rwlock_t *restrict rwlock,
const pthread_rwlockattr_t *restrict attr) ;

    #include <time.h>

int pthread_rwlock_rdlock(

pthread_rwlock_t *rwlock) ;

int pthread_rwlock_wrlock(

pthread_rwlock_t *rwlock) ;

int pthread_rwlock_timedrdlock(

pthread_rwlock_t *restrict rwlock,
const struct timespec *restrict

abs_timeout) ;

int pthread_rwlock_timedwrlock(

pthread_rwlock_t | *restrict rwlock,
const struct timespec *restrict

abs_timeout) ;

        int pthread_rwlock_unlock(
                          pthread_rwlock_t *rwlock) ;

        int pthread_rwlock_tryrdlock (
                            pthread_rwlock_t *rwlock) ;

int pthread_rwlock_trywrlock(

pthread_rwlock_t *rwlock) ;

          1! pthread_rwlock_destroy(

pthread_rwlock_t *rwlock) ;

 5.5.       pthread_rwlock_t

                        
#include <pthread.h>

int pthread_rwlockattr_init         -
(pthread_rwlockattr_t * attr);  -,  
attr, ,   -
   ,  -


int pthread_rwlockattr_destroy      
(pthread_rwlockattr_t * attr); -,   attr.
   , -
 

pthread_rwlockattr_init()