pthread_attr_scope 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_GETSCOPE(3)    BSD Programmer's Manual   PTHREAD_ATTR_GETSCOPE(3)

NAME
     pthread_attr_getscope, pthread_attr_setscope - pthread scheduling con-
     tention attribute

SYNOPSIS
     #include <pthread.h>

     int
     pthread_attr_getscope(pthread_attr_t *attr, int *contentionscope);

     int
     pthread_attr_setscope(pthread_attr_t *attr, int contentionscope);

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

     The pthread_attr_getscope() and pthread_attr_setscope() functions re-
     trieve and establish the scheduling contention attribute in the pthread
     creation attribute pointed to by attr. The contentionscope parameter may
     have the values of PTHREAD_SCOPE_SYSTEM or PTHREAD_SCOPE_PROCESS only.

RETURN VALUES
     Upon successful completion the pthread_attr_getscope and
     pthread_attr_setscope functions both return 0.  A non-zero result indi-
     cates an error occurred.  Upon successful completion the
     pthread_attr_getscope function returns a copy of the contentionscope at-
     tribute value in the location pointed to by contentionscope.

ERRORS
     The pthread_attr_getscope and pthread_attr_setscope functions may fail
     and return the following error:

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

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

STANDARDS
     The pthread_attr_getscope and pthread_attr_setscope functions conform to
     IEEE Std1003.1c (``POSIX'').

HISTORY
     The pthread_attr_getscope and pthread_attr_setscope functions first ap-
     peared in BSD/OS 4.0.

4th Berkeley Distribution	 May 29, 1998				     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