pthread_attr_setinheritsched man page on BSDi

Man page or keyword search:  
man Server   6284 pages
apropos Keyword Search (all sections)
Output format
BSDi logo
[printable version]

PTHREAD_ATTR_INHERITSCHED(3)BSD Programmer's ManuaPTHREAD_ATTR_INHERITSCHED(3)

NAME
     pthread_attr_getinheritsched, pthread_attr_setinheritsched - pthread in-
     heritsched creation attribute

SYNOPSIS
     #include <pthread.h>

     int
     pthread_attr_getinheritsched(pthread_attr_t *attr, int *inheritsched);

     int
     pthread_attr_setinheritsched(pthread_attr_t *attr, int inheritsched);

DESCRIPTION
     This interface is defined by IEEE Std1003.1c (``POSIX'').

     The pthread_attr_getinheritsched() and pthread_attr_setinheritsched()
     functions retrieve and establish the inheritsched attribute in the
     pthread creation attribute pointed to by attr. The inheritsched value
     should be specified as one of PTHREAD_INHERIT_SCHED or
     PTHREAD_EXPLICIT_SCHED. The default value for inheritsched in an at-
     tribute object is PTHREAD_EXPLICIT_SCHED.

     Specifying PTHREAD_INHERIT_SCHED causes all threads created with the cre-
     ation attribute attr to be created with the scheduling attributes of the
     parent thread.  The scheduling attributes in this attribute object are
     ignored.

     Specifying PTHREAD_EXPLICIT_SCHED causes all threads created with the
     creation attribute attr to establish their scheduling attributes from
     those set in the attr attribute object, ignoring those of the parent
     thread.

RETURN VALUES
     Upon successful completion, the pthread_attr_getinheritsched and
     pthread_attr_setinheritsched functions both return 0.  A non-zero result
     indicates an error occurred.

ERRORS
     The pthread_attr_getinheritsched and pthread_attr_setinheritsched func-
     tions may fail and return the following error:

     [EINVAL]	   The value of a function argument is invalid.

SEE ALSO
     pthreads(3),  pthread_create(3),  pthread_attr(3)

STANDARDS
     The pthread_attr functions conform to IEEE Std1003.1c (``POSIX'').

HISTORY
     The pthread_attr functions first appeared in BSD/OS 3.0.

4th Berkeley Distribution	 June 3, 1996				     1
[top]

List of man pages available for BSDi

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net