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

  man pages->IRIX man pages -> pthread_mutexattr_init (3p)              


pthread_mutexattr_init(3P)			    pthread_mutexattr_init(3P)

NAME    [Toc]    [Back]

     pthread_mutexattr_init, pthread_mutexattr_destroy - initialize/destroy a
     mutex attribute object

C SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>

     int pthread_mutexattr_init(pthread_mutexattr_t *attr);
     int pthread_mutexattr_destroy(pthread_mutexattr_t *attr);

DESCRIPTION    [Toc]    [Back]

     The function pthread_mutexattr_init() initializes the mutex attribute
     object referenced by attr to the default attribute	values.	 The default
     sharing value is PTHREAD_PROCESS_PRIVATE.	The default priority protocol
     is	PTHREAD_PRIO_NONE.  The	default	mutex type is PTHREAD_MUTEX_DEFAULT.

     Once a mutex attribute object is used to initialize one or	more mutexes,
     any function that affects the attribute object will not affect the
     previously	initialized mutexes.  pthread_mutexattr_destroy()
     uninitializes the mutex attribute structure referenced by attr.

DIAGNOSTICS    [Toc]    [Back]

     These functions return zero.

SEE ALSO    [Toc]    [Back]

     pthread_mutex_lock(3P), pthread_mutexattr_setprioceiling(3P),
     pthread_mutexattr_setpshared(3P), pthread_mutexattr_setprotocol(3P),

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
pthread_condattr_init IRIX initialize/destroy a condition variable attribute object
pthread_mutexattr_gettype Tru64 Obtains the mutex type attribute in the specified mutex attributes object
pthread_rwlock_init IRIX initialize/destroy a readwrite lock object
pthread_attr_destroy OpenBSD initialise and destroy threads attribute object
pthread_attr_init OpenBSD initialise and destroy threads attribute object
pthread_mutexattr_getpshared Tru64 Obtains the process-shared attribute of a mutex attributes object
pthread_mutexattr_setpshared Tru64 Sets 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_rwlockattr_init IRIX initialize/destroy
pthread_mutexattr_init OpenBSD mutex attribute operations
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service