|Anonymous | Login||2020-01-24 17:27 UTC|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details|
|ID||Category||Severity||Type||Date Submitted||Last Update|
|0001291||[1003.1(2016)/Issue7+TC2] Base Definitions and Headers||Comment||Enhancement Request||2019-09-27 19:36||2019-10-10 15:57|
|Page Number||NA - addition request|
|Line Number||NA - addition request|
|Final Accepted Text|
|Summary||0001291: Add method to obtain pthread attributes|
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:
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.|
|Tags||No tags attached.|
Don Cragun (manager)
edited on: 2019-10-10 16:04
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.
See Note: 0004215 for an example of the information we want to see.
|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|
|2019-10-10 16:04||Don Cragun||Note Edited: 0004616|
|Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group|