Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pthread_create(3P)

pthread_attr_delete(3P)

PTHREAD_ATTR_CREATE(3P)              SysV              PTHREAD_ATTR_CREATE(3P)



NAME
     pthread_attr_create - Creates a thread attributes object

SYNOPSIS
     #include <pthread.h>

     int pthread_attr_create (attr)
     pthread_attr_t *attr;

DESCRIPTION
     The pthread_attr_create function creates a thread attributes object
     specified by the attr argument, initialized with the default values for
     the thread attributes. When you create a new thread (using the
     pthread_create(3P) function), you use an attributes object to specify the
     attributes to be used for that thread.

     The attr argument specifies the address in which the ID for the new
     thread attributes object will be stored.

     The only thread attribute that is currently modifiable is stack size.
     Use the pthread_attr_setstacksize(3P) function to change the value of the
     stack size attribute. The default stack size is the maximum stack size
     allowed on your system.

     You can apply the same attributes object to more than one thread.

NOTES
     This interface is based on draft 4 of the IEEE P1003.4a standard, and
     will be changed to conform to the final version.

DIAGNOSTICS
     Upon successful completion, a value of 0 (zero) is returned.  Otherwise,
     -1 is returned and errno is set to indicate the error.

ERRORS
     If the pthread_attr_create function fails, errno may be set to one of the
     following values:

     [ENOMEM]  There is not enough memory to create the thread attributes
               object.  This is not a temporary condition.

     [EINVAL]  The value specified by the attr argument is invalid.

SEE ALSO
     pthread_create(3P), pthread_attr_delete(3P)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026