[1003.1(2016)/Issue7+TC2 0001291]: Add method to obtain pthread attributes

2019-10-10 Thread Austin Group Bug Tracker


A NOTE has been added to this issue. 
== 
http://austingroupbugs.net/view.php?id=1291 
== 
Reported By:joelsherrill
Assigned To:
== 
Project:1003.1(2016)/Issue7+TC2
Issue ID:   1291
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:36 UTC
Last Modified:  2019-10-10 15:57 UTC
== 
Summary:Add method to obtain pthread attributes
== 

-- 
 (0004616) Don Cragun (manager) - 2019-10-10 15:57
 http://austingroupbugs.net/view.php?id=1291#c4616 
-- 
This was discussed during the 2019-10-10 conference call: We have no
objections to adding such an interface (although it will need a sponsor). 
But, before we can proceed we need complete details on the interface (i.e.,
a man page).  We note that the man pages for the implementations that
currently support this feature have different descriptions and are not
really sure what is being proposed.

We suggest using the name pthread_getattr() because it fits better
with the existing naming
conventions:pthread_getschedparam(),
pthread_getcpuclockid() are functions that obtain information about
a specified
threadwhereas:pthread_attr_get*() are
functions that extract individual attributes from a pthread_attr_t
object

Please supply complete details as a note in this bug report and we will
then look for a sponsor for this new interface. 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2019-09-27 19:36 joelsherrill   New Issue
2019-09-27 19:36 joelsherrill   Name  => Joel Sherrill   
2019-09-27 19:36 joelsherrill   Organization  => RTEMS.org   
2019-09-27 19:36 joelsherrill   Section   => pthread.h   
2019-09-27 19:36 joelsherrill   Page Number   => NA - addition
request
2019-09-27 19:36 joelsherrill   Line Number   => NA - addition
request
2019-10-10 15:57 Don Cragun Note Added: 0004616  
==




[1003.1(2016)/Issue7+TC2 0001291]: Add method to obtain pthread attributes

2019-09-27 Thread Austin Group Bug Tracker


The following issue has been SUBMITTED. 
== 
http://austingroupbugs.net/view.php?id=1291 
== 
Reported By:joelsherrill
Assigned To:
== 
Project:1003.1(2016)/Issue7+TC2
Issue ID:   1291
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:36 UTC
Last Modified:  2019-09-27 19:36 UTC
== 
Summary:Add method to obtain pthread attributes
Description: 
This is a commonly added pthread capability but there is little agreement
on the API name.

https://musl.openwall.narkive.com/dD88I7eH/pthread-getattr-np provides this
list of API names for this capability in the context of discussing how to
get the current stack information:

glibc: pthread_getattr_np
freebsd: pthread_attr_get_np
netbsd: pthread_attr_get_np and pthread_getattr_np

RTEMS follows glibc/linux with pthread_getattr_np.


If this capability is provided, then the current stack information can also
be obtained.

The naming pattern pthread_[sg]attr_* is used to modify the pthread_attr_t
structure used in a pthread_create() call. The Linux name of
pthread_attr_get() seems like a choice which is an easy name and wouldn't
be confused.
Desired Action: 
Add pthread_attr_get() API.
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2019-09-27 19:36 joelsherrill   New Issue
2019-09-27 19:36 joelsherrill   Name  => Joel Sherrill   
2019-09-27 19:36 joelsherrill   Organization  => RTEMS.org   
2019-09-27 19:36 joelsherrill   Section   => pthread.h   
2019-09-27 19:36 joelsherrill   Page Number   => NA - addition
request
2019-09-27 19:36 joelsherrill   Line Number   => NA - addition
request
==