The following issue has been SUBMITTED. ====================================================================== https://www.austingroupbugs.net/view.php?id=1782 ====================================================================== Reported By: dannyniu Assigned To: ====================================================================== Project: 1003.1(2016/18)/Issue7+TC2 Issue ID: 1782 Category: Rationale Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: DannyNiu/NJF Organization: <individual> User Reference: c181.pdf Section: B.2.8 Realtime >> Rationale Relating to Timeouts Page Number: 3628 Line Number: 123791 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2023-10-17 11:30 UTC Last Modified: 2023-10-17 11:30 UTC ====================================================================== Summary: Standardize "pthread_yield"? Or change the example code? Description: In the example code at page 3628, the example used the `pthread_yield()` function.
This function is a common-place extension in most Pthread implementations, however, it was not included in the normative text of the current standard. Instead, `sched_yield()` is specified and included in the base. C11 has the `thrd_yield()` function, which is part of the "threads.h" header. Desired Action: Standardize `pthread_yield()` (as C11 has standardized `thrd_yield()`) OR replace the call in the code example with `sched_yield()` OR some other more preferrable solution? ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2023-10-17 11:30 dannyniu New Issue 2023-10-17 11:30 dannyniu Name => DannyNiu/NJF 2023-10-17 11:30 dannyniu Organization => <individual> 2023-10-17 11:30 dannyniu User Reference => c181.pdf 2023-10-17 11:30 dannyniu Section => B.2.8 Realtime >> Rationale Relating to Timeouts 2023-10-17 11:30 dannyniu Page Number => 3628 2023-10-17 11:30 dannyniu Line Number => 123791 ======================================================================
