pthread_attr_setscope

Sets the contention scope attribute for the thread.

Library:LibC
Classification:POSIX
Service:Threads

Syntax

  #include <pthread.h>
  
  int pthread_attr_setscope (
     pthread_attr_t   *attr,
     int               contentionscope);
  

Parameters

attr

(IN) Points to the attribute structure for the thread.

contentionscope

(IN) Specifies the value for the contention scope attribute (the attr_scope field). The only value supported is PTHREAD_SCOPE_PROCESS.

Return Values

If successful, returns 0; otherwise, returns a nonzero error code:

Decimal

Constant

Description

79

ENOTSUP

The value specified in the contentionscope parameter is not supported.

See Also