628  



pthread_rwlock_destroy, pthread_rwlock_init   
       .



THR    #include <pthread.h>

int pthread^rwlock_destroy(pthread_rwlock_t *rwlock);

int pthread_rwlock_init(             ,

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



 pthread_rwlock_destroy ()     -
   ,   rwlock,    -
,   .   
      ,      -
       pthread_rwlock_init ().
    pthread_rwlock_destroy ()  
,   rwlock,   . -
  ,   pthread_rwlock_destroy ()    -
,  -    ,  
rwlock.       
     .

 pthread_rwlock_init ()   ,  
      ,  
rwlock,    (    )  -
  ,   a t tr.   a t tr
  NULL,        -
,   ; ..      
 ,        .
        
   .   ,  
pthread_rwlock_init ()      
.   ,       
   .

    pthread_rwlock_init () , -
  rwlock,  ,   
rwlock .

      , 
 rwlock.         
pthread_rwlock_destroy(), pthread_rwlock_rdlock(), pthread_rwlock_ti-
medrdlock(), pthread_rwlock_timedwrlock(), pthread_rwlock_tryrdlock(),
pthread_rwlock_trywrlock(), pthread_rwlock_unlock()  pthread_rwlock_
wriock ()  .