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

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


pthread_condattr_init(3P)			     pthread_condattr_init(3P)

NAME    [Toc]    [Back]

     pthread_condattr_init, pthread_condattr_destroy - initialize/destroy a
     condition variable	attribute object

C SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>

     int pthread_condattr_init(pthread_condattr_t *attr);
     int pthread_condattr_destroy(pthread_condattr_t *attr);

DESCRIPTION    [Toc]    [Back]

     The function pthread_condattr_init() initializes the condition variable
     attribute object referenced by attr to the	default	attribute values.  The
     default sharing value is PTHREAD_PROCESS_PRIVATE.

     Once a condition variable 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_condattr_destroy()
     uninitializes the condition variable attribute structure referenced by
     attr.  This may include freeing dynamically allocated memory.

DIAGNOSTICS    [Toc]    [Back]

     These routines return zero.

SEE ALSO    [Toc]    [Back]

     pthread_cond_init(3P), pthread_condattr_setpshared(3P).

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
pthread_mutexattr_init IRIX initialize/destroy a mutex attribute object
pthread_condattr_getpshared Tru64 Obtain the process-shared attribute of a condition variable attributes object
pthread_condattr_setpshared Tru64 Change the process-shared attribute of a condition variable attributes object
pthread_cond_destroy FreeBSD destroy a condition variable
pthread_cond_destroy OpenBSD destroy a condition variable
pthread_cond_getname_np Tru64 Obtain the object name from a condition variable object
pthread_rwlock_init IRIX initialize/destroy a readwrite lock object
pthread_condattr_init Tru64 Initializes a condition variable attributes object
pthread_condattr_destroy Tru64 Destroys a condition variable attributes object
pthread_cond_setname_np Tru64 Changes the object name in a condition variable object
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service