pthread_attr_getname_np

Returns the name attribute for the thread.

Library:LibC
Classification:Other
Service:Threads

Syntax

  #include <pthread.h>
  
  int pthread_attr_getname_np (
     const pthread_attr_t   *attr,
     char                   *name
     size_t                  len,
     void                  **mbz );
  

Parameters

attr

(IN) Points to a thread attribute structure.

name

(OUT) Points to the name of the thread.

len

(IN) Specifies the length of the name buffer.

mbz

(IN) Reserved. Set to 0.

Return Values

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

See Also