?? pthread_attr_init.txt
字號(hào):
--------------------------------------------------------------------------------AIX Version 4.3 Base Operating System and Extensions Technical Reference, Volume 1--------------------------------------------------------------------------------pthread_attr_init SubroutinePurposeCreates a thread attributes object and initializes it with default values.LibraryThreads Library (libpthreads.a)Syntax#include <pthread.h>int pthread_attr_init (attr)pthread_attr_t *attr;DescriptionThe pthread_attr_init subroutine creates a new thread attributes object attr. Thenew thread attributes object is initialized with the following default values:Always initializedAttribute Default valueDetachstate PTHREAD_CREATE_JOINABLEAlways InitializedAttribute Default valueContention-scope PTHREAD_SCOPE_PROCESS the default ensures compatibility withimplementations that do not support this POSIX option.Inheritsched PTHREAD_INHERITSCHEDSchedparam A sched_param structure which sched_prio field is set to 1, the leastfavored priority.Schedpolicy SCHED_OTHERAlways InitializedAttribute Default valueStacksize PTHREAD_STACK_MINGuardsize PAGESIZEThe resulting attribute object (possibly modified by setting individual attributevalues), when used by pthread_create, defines the attributes of the threadcreated. A single attributes object can be used in multiple simultaneous calls topthread_create.Parametersattr Specifies the thread attributes object to be created.Return ValuesUpon successful completion, the new thread attributes object is filled withdefault values and returned via the attr parameter, and 0 is returned. Otherwise,an error code is returned.Error CodesThe pthread_attr_init subroutine is unsuccessful if the following is true:EINVAL The attr parameter is not valid.ENOMEM There is not sufficient memory to create the thread attribute object.This function will not return an error code of [EINTR].Implementation SpecificsThis subroutine is part of the Base Operating System (BOS) Runtime.Related InformationThe pthread_attr_setdetachstate subroutine, pthread_attr_setstackaddr subroutine,pthread_attr_setstacksize subroutine, pthread_create subroutine,pthread_attr_destroy and pthread_attr_setguardsize subroutine.The pthread.h file.Creating Threads in AIX Version 4.3 General Programming Concepts: Writing andDebugging Programs.Threads Library Options and Threads Library Quick Reference in AIX Version 4.3General Programming Concepts: Writing and Debugging Programs.--------------------------------------------------------------------------------
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -