A NOTE has been added to this issue. 
====================================================================== 
http://austingroupbugs.net/view.php?id=1292 
====================================================================== 
Reported By:                joelsherrill
Assigned To:                
====================================================================== 
Project:                    1003.1(2016)/Issue7+TC2
Issue ID:                   1292
Category:                   Base Definitions and Headers
Type:                       Enhancement Request
Severity:                   Comment
Priority:                   normal
Status:                     New
Name:                       Joel Sherrill 
Organization:               RTEMS.org 
User Reference:              
Section:                    pthread.h 
Page Number:                NA - addition request 
Line Number:                NA - addition request 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2019-09-27 19:37 UTC
Last Modified:              2019-09-30 17:24 UTC
====================================================================== 
Summary:                    Add pthread_setname, pthread_getname
====================================================================== 

---------------------------------------------------------------------- 
 (0004579) GarrettWollman (reporter) - 2019-09-30 17:24
 http://austingroupbugs.net/view.php?id=1292#c4579 
---------------------------------------------------------------------- 
The operating systems that support this functionality report thread status
and thread names through other standard tools such as ps.  Applications
find it useful to be able to report thread information in this manner, and
the interface as specified is clearly widely accepted in implementations
that do not share a common lineage.

(Obviously, some implementations would not be able to provide this
information to external processes, but that does not limit its utility as a
portable interface for applications to supply this information.)

I believe it is not supported as a thread attribute because the common
usage in applications is to start multiple threads with the same
attributes; they can use thread names to provide more information about
what the threads are doing after they are created.  pthread_setname_np()
was added as the threaded equivalent of setproctitle() which is commonly
used for this purpose in single-threaded applications. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2019-09-27 19:37 joelsherrill   New Issue                                    
2019-09-27 19:37 joelsherrill   Name                      => Joel Sherrill   
2019-09-27 19:37 joelsherrill   Organization              => RTEMS.org       
2019-09-27 19:37 joelsherrill   Section                   => pthread.h       
2019-09-27 19:37 joelsherrill   Page Number               => NA - addition
request
2019-09-27 19:37 joelsherrill   Line Number               => NA - addition
request
2019-09-30 08:49 Konrad_Schwarz Note Added: 0004573                          
2019-09-30 13:59 wlerch         Note Added: 0004575                          
2019-09-30 16:55 shware_systems Note Added: 0004577                          
2019-09-30 17:23 wlerch         Note Added: 0004578                          
2019-09-30 17:24 GarrettWollman Note Added: 0004579                          
======================================================================


Reply via email to