  565



pthread_cond_destroy, pthread_cond_init     -
  .



THR    #include <pthread.h>

int pthread_cond_destroy (pthread_cond_t *cond) ;

int pthread_cond_init (

pthread_cond_t *restrict cond,
const pthread_condattr_t *restrict attr) ;

pthread_cond_t cond = PTHREAD_COND_INITIALIZER;



 pthread_cond_destroy ()     -
,   cond,      -
.     pthread_cond_destroy()
  ,   cond,  -
 .       -
    pthread_cond_init ();    
     .

       -
,          .   -
  ,       
,     .

 pthread_cond_init ()     -
,   cond,  ,  -
 attr.   a ttr   NULL,   -
   ,   , .. 
      ,   -
  .     
 .

       
cond.      cond    
pthread_cond_wait(), pthread_cond_timedwait(), pthread_cond_signal(),
pthread_cond_broadcast () Hpthread_cond_destroy()  . 
       -
 .

   ,   ,  -
,    ,   ,
   PTHREAD_COND_INITIALIZER.    
               
pthread_cond_init ()   attr,   NULL,   
  .