VMS Help
DCE_THREADS, Application Routines, pthread_attr_create

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

  NAME

      pthread_attr_create - Creates a thread attributes object

  SYNOPSIS

      #include <pthread.h>

      int pthread_attr_create (pthread_attr_t *attr);

  PARAMETERS

      attr                Thread attributes object created.

  DESCRIPTION

  The pthread_attr_create() 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 only used in calls to
  pthread_create().

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

        o    pthread_attr_setinheritsched()

        o    pthread_attr_setprio()

        o    pthread_attr_setsched()

        o    pthread_attr_setstacksize()

  When an attributes object is used to create a thread, the values of  the
  individual  attributes  determine the characteristics of the new object.
  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:

            Return   Error      Description
            ___________________________________________________________
               0                Successful completion.

              -1     [ENOMEM]   Insufficient memory exists to create
                                the thread attributes object.

              -1     [EINVAL]   The value specified by attr is invalid.

  RELATED INFORMATION

      FUNCTIONS: pthread_attr_delete
                 pthread_attr_setinheritsched
                 pthread_attr_setprio
                 pthread_attr_setsched
                 pthread_attr_setstacksize
                 pthread_create
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.