View Issue Details

IDProjectCategoryView StatusLast Update
00019651003.1(2024)/Issue8System Interfacespublic2025-12-21 06:49
Reporterdannyniu Assigned To 
PrioritynormalSeverityEditorialTypeClarification Requested
Status NewResolutionOpen 
NameDannyNiu/NJF
Organization
User Reference
Section<pthread.h> `pthread_equal`
Page Number239, 1722
Line Number11576, 57189-57227
Interp Status
Final Accepted Text
Summary0001965: Why isn't pthread_equal async-signal safe?
DescriptionCurrently there are 4 pthread_* functions that're async-signal-safe, including pthread_self.

IMHO, there's no reason to not make pthread_equal safe, unless during some thread control operation, some function would modify the internal data structure if pthread_t is not a scalar.

Additionally, unless some implementation _does_ alter pthread_t handle, I think it's perfectly fine to require that the arguments be const-qualified, or that pthread_t be a pointer to a const-qualified data structure.
Desired ActionClarify whether and why pthread_equals isn't an async-signal-safe function.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-12-21 06:49 dannyniu New Issue