pthread_condattr_getpshared man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

pthread_condattr_getpshared(3)			pthread_condattr_getpshared(3)

NAME
       pthread_condattr_getpshared  - Obtain the process-shared attribute of a
       condition variable attributes object

SYNOPSIS
       #include <pthread.h>

       int pthread_condattr_getpshared(
	       const pthread_condattr_t attr,
	       int *pshared );

LIBRARY
       DECthreads POSIX 1003.1c Library (libpthread.so)

PARAMETERS
       Address of the condition	 variable  attributes  object  whose  process-
       shared attribute is to be obtained.  Location to store the value of the
       process-shared attribute of attr.

DESCRIPTION
       This routine obtains the value of the process-shared attribute  in  the
       condition  variable  attributes object referenced by attr and stores it
       at the location pshared.	 The object referenced by attr	must  be  ini‐
       tialized before this routine is called.

       Creating	 a condition variable whose process-shared attribute is set to
       PTHREAD_PROCESS_PRIVATE permits it to be operated on by threads created
       within  the  same process as the thread that initialized that condition
       variable.  If threads other than processes attempt to operate on such a
       condition variable, the behavior is undefined.

       The  default  value  of	the process-shared attribute of an initialized
       condition variable attributes object is PTHREAD_PROCESS_PRIVATE.

       Creating a condition variable whose process-shared attribute is set  to
       PTHREAD_PROCESS_SHARED  permits	it  to	be operated upon by any thread
       that has access to the memory where that condition  variable  is	 allo‐
       cated,  even  if	 it  is allocated in memory that is shared by multiple
       processes.

RETURN VALUES
       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	 not  a	 valid
       attributes object.

ERRORS
       None

SEE ALSO
       Functions: pthread_condattr_init(3), pthread_condattr_setpshared(3)

       Manuals: Guide to DECthreads and Programmer's Guide

						pthread_condattr_getpshared(3)
[top]

List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net