Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pthread_attr_create(3-thr) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

pthread_attr_create(3-thr)                       pthread_attr_create(3-thr)

NAME
     pthreadattrcreate - creates a thread attributes object

SYNOPSIS
     #include <pthread.h>

     int pthreadattrcreate(pthreadattrt *attr);

PARAMETERS
     attr      Thread attributes object created.

DESCRIPTION
     The pthreadattrcreate() routine creates a thread attributes object
     that is used to specify the attributes of threads when they are
     created. The attributes object created by this routine is used in
     calls to pthreadcreate().

     The individual attributes (internal fields) of the attributes object
     are set to default values. (The default values of each attribute are
     discussed in the descriptions of the following services.) Use the fol-
     lowing routines to change the individual attributes:

     pthreadattrsetinheritsched()

     pthreadattrsetprio()

     pthreadattrsetsched()

     pthreadattrsetstacksize()

     When an attributes object is used to create a thread, the values of
     the individual attributes determine the characteristics of the new
     thread. Attributes objects perform in a manner similar to additional
     parameters. Changing individual attributes does not affect any threads
     that were previously created using the attributes object.

RETURN VALUES
     If the function fails, -1 is returned and errno may be set to one of
     the following values:

     ENOMEM    Insufficient memory exists to create the thread attributes
               object.

     EINVAL    The value specified by attr is invalid.

SEE ALSO
     pthreadattrdelete(3-thr), pthreadattrsetinheritsched(3-thr),
     pthreadattrsetprio(3-thr), pthreadattrsetsched(3-thr),
     pthreadattrsetstacksize(3-thr), pthreadcreate(3-thr).






Page 1                       Reliant UNIX 5.44                Printed 11/98

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