*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> pthread_mutexattr_gettype (3)              
Title
Content
Arch
Section
 

pthread_mutexattr_gettype(3)

Contents


NAME    [Toc]    [Back]

       pthread_mutexattr_gettype   -   Obtains   the  mutex  type
       attribute in the specified mutex attributes object

SYNOPSIS    [Toc]    [Back]

       #include <pthread.h>

       int pthread_mutexattr_gettype(
               const pthread_mutexattr_t *attr,
               int *type );

LIBRARY    [Toc]    [Back]

       DECthreads POSIX 1003.1c Library (libpthread.so)

STANDARDS    [Toc]    [Back]

       Interfaces documented on this reference  page  conform  to
       industry standards as follows:

       IEEE  Std  1003.1c-1995,  POSIX System Application Program
       Interface

PARAMETERS    [Toc]    [Back]

       Mutex attributes object  whose  mutex  type  attribute  is
       obtained.  Receives the value of the mutex type attribute.
       The type argument specifies the type of mutex that is created.
     Valid     values    are:    PTHREAD_MUTEX_NORMAL
       PTHREAD_MUTEX_DEFAULT  (default)   PTHREAD_MUTEX_RECURSIVE
       PTHREAD_MUTEX_ERRORCHECK

DESCRIPTION    [Toc]    [Back]

       This routine obtains the value of the mutex type attribute
       in the mutex attributes object specified by the attr argument
  and  stores it in the location specified by the type
       argument.  See  the  pthread_mutexattr_settype(3)  routine
       description for information about mutex type attributes.

RETURN VALUES    [Toc]    [Back]

       On  successful  completion, this routine returns the mutex
       type in the location by the type argument.

       If an error condition  occurs,  this  routine  returns  an
       integer  value  indicating  the  type  of  error. Possible
       return values are as follows: Successful completion.   The
       value specified by attr is invalid.

ERRORS    [Toc]    [Back]

       None

SEE ALSO    [Toc]    [Back]

      
      
       Functions:    pthread_mutexattr_init(3),    pthread_mutexattr_settype(3), pthread_mutex_init(3)

       Manuals: Guide to DECthreads and Programmer's Guide



                                     pthread_mutexattr_gettype(3)
[ Back ]
 Similar pages
Name OS Title
pthread_mutexattr_getpshared Tru64 Obtains the process-shared attribute of a mutex attributes object
pthread_mutexattr_settype Tru64 Specifies the mutex type attribute that is used when a mutex is created
pthread_mutexattr_setpshared Tru64 Sets the process-shared attribute of a mutex attributes object
pthread_mutexattr_settype IRIX set/get a mutex attribute object's type
pthread_mutexattr_init Tru64 Initializes a mutex attributes object
pthread_mutexattr_destroy Tru64 Destroys the specified mutex attributes object
pthread_mutexattr_init IRIX initialize/destroy a mutex attribute object
pthread_attr_getdetachstate Tru64 Obtains the detachstate attribute of the specified thread attributes object
pthread_attr_getstacksize Tru64 Obtains the value of the stacksize attribute in the specified thread attributes object
pthread_attr_getguardsize Tru64 Obtains the guardsize attribute of the specified thread attributes object
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service