pthread_attr_setname_np

Sets the name attribute for the thread.

Library:LibC
Classification:Other
Service:Threads

Syntax

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

Parameters

attr

(IN) Points to a thread attribute structure.

name

(IN) Points to the name for the thread. The name can be up to 20 characters long, a count which includes the NULL termination.

mbz

(IN) Reserved. Set to 0.

Return Values

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

Decimal

Constant

Description

9

EINVAL

The name parameter is invalid.

See Also