622  



pthread_mutexattr_gettype, pthread_mutexattr_settype   -
    type.



XSI     #include <pthread.h>

int pthread_mutexattr_gettype (

const pthread_mutexattr_t *restrict attr,
int *restrict type) ;

int pthread_mutexattr_settype (

pthread_mutexattr_t *attr,
int type) ;



 pthread_mutexattr_gettype()  pthread_mutexattr_settype()
       type.  -
        type.    type
   PTHREAD_MUTEX_DEFAULT.

 type   .    type
  :

PTHREAD_MUTEX_NORMAL

     . ,  -
      ,  
.   ,   -
,    .   -
      .

PTHREAD_MUTEX_ERRORCHECK

       . ,  -
      , -
  .    ,  
,   .    -
     .

PTHREAD_MUTEX_RECURSIVE

,        -
,   . ,   
   PTHREAD_MUTEX_NORMAL,   
   .     
   ,    , 
     .    , -
  ,   .   -
      .