?? pthread_condattr_getpshared.txt
字號:
--------------------------------------------------------------------------------AIX Version 4.3 Base Operating System and Extensions Technical Reference, Volume 1--------------------------------------------------------------------------------pthread_condattr_getpshared SubroutinePurposeReturns the value of the pshared attribute of a condition attributes object.LibraryThreads Library (libpthreads.a)Syntax#include <pthread.h>int pthread_condattr_getpshared (attr, pshared)const pthread_condattr_t *attr;int *pshared;DescriptionThe pthread_condattr_getpshared subroutine returns the value of the psharedattribute of the condition attribute object attr. This attribute specifies theprocess sharing of the condition variable created with this attributes object. Itmay have one of the following values:PTHREAD_PROCESS_SHARED Specifies that the condition variable can be used by anythread that has access to the memory where it is allocated, even if these threadsbelong to different processes.PTHREAD_PROCESS_PRIVATE Specifies that the condition variable shall only be usedby threads within the same process as the thread that created it. This is thedefault value. Note: The pthread.h header file must be the first included file of each source file using the threads library. Otherwise, the -D_THREAD_SAFE compilation flag should be used, or the cc_r compiler used. In this case, the flag is automatically set.Parametersattr Specifies the condition attributes object.pshared Points to where the pshared attribute value will be stored.Return ValuesUpon successful completion, the value of the pshared attribute is returned viathe pshared parameter, and 0 is returned. Otherwise, an error code is returned.Error CodesThe pthread_condattr_getpshared subroutine is unsuccessful if the following istrue:EINVAL The attr parameter is not valid.ENOSYS The process sharing POSIX option is not implemented.Implementation SpecificsThis subroutine is part of the Base Operating System (BOS) Runtime.Related InformationThe pthread_condattr_setpshared subroutine, pthread_condattr_init subroutine.Advanced Attributes in AIX Version 4.3 General Programming Concepts: Writing andDebugging Programs.Threads Library Options in AIX Version 4.3 General Programming Concepts: Writingand Debugging Programs.Threads Library Quick Reference in AIX Version 4.3 General Programming Concepts:Writing and Debugging Programs.--------------------------------------------------------------------------------
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -