pthread_attr_getscope

Returns the contention scope attribute of the thread.

Library:LibC
Classification:POSIX
Service:Threads

Syntax

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

Parameters

attr

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

contentionscope

(OUT) Points to 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.

See Also