640  



pthread_rwlock_trywrlock, pthread_rwlock_wrlock , -
   -   .



THR    #include <pthread.h>

int pthread_rwlock_trywrlock (pthread_rwlock_t *rwlock};

int pthread_rwlock_wrlock (pthread_rwlock_t *rwlock);



 pthread_rwlock_trywrlock ()    
   pthread_rwlock_wrlock (),   ,  
  ,  -     
  ,   rwlock (   ).

 pthread_i-wlock_wrlock ()     -
    -,   rwlock. -
     ,    
(  )     .  -
        ,     
.       ,  
     - (  ,  
)  ,   rwlock.

      -
,     .   ,
         -
 -.  ,     ,
 ,        -
 ,       .

 

 pthread_rwlock_trywrlock()   , 
      -,  -
 rwloc, .      , -
  .

    pthread_rwlock_wrlock()  -
 ;      ,   .



 pthread_rwlock_trywrlock ()  , :

[EBUSY]     -      ,
       
 .