pthread_attr_getstacksize.txt
来自「Pthread lib库完整说明文档」· 文本 代码 · 共 76 行
TXT
76 行
--------------------------------------------------------------------------------AIX Version 4.3 Base Operating System and Extensions Technical Reference, Volume 1--------------------------------------------------------------------------------pthread_attr_getstacksize SubroutinePurposeReturns the value of the stacksize attribute of a thread attributes object.LibraryThreads Library (libpthreads.a)Syntax#include <pthread.h>int pthread_attr_getstacksize (attr, stacksize)const pthread_attr_t *attr;size_t *stacksize;DescriptionThe pthread_attr_getstacksize subroutine returns the value of the stacksizeattribute of the thread attributes object attr. This attribute specifies theminimum stack size of a thread created with this attributes object. The value isgiven in bytes. The default stack size is PTHREAD_STACK_MIN, *12 defined inpthread.h. 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 thread attributes object.stacksize Points to where the stacksize attribute value will be stored.Return ValuesUpon successful completion, the value of the stacksize attribute is returned viathe stacksize parameter, and 0 is returned. Otherwise, an error code is returned.Error CodesThe pthread_attr_getstacksize subroutine is unsuccessful if the following istrue:EINVAL The attr or stacksize parameters are not valid.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_setstacksize subroutine, pthread_attr_init subroutine, thepthread.h file.Advanced Attributes 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.--------------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?