The following issue has been UPDATED. ====================================================================== https://austingroupbugs.net/view.php?id=1485 ====================================================================== Reported By: mikecrowe Assigned To: ====================================================================== Project: Issue 8 drafts Issue ID: 1485 Category: System Interfaces Type: Enhancement Request Severity: Editorial Priority: normal Status: New Name: Mike Crowe Organization: User Reference: Section: pthread_cond_clockwait Page Number: 1563 Line Number: 51671-51684 Final Accepted Text: ====================================================================== Date Submitted: 2021-06-12 14:08 UTC Last Modified: 2021-06-17 15:57 UTC ====================================================================== Summary: It may be clearer to describe pthread_cond_timedwait in terms of pthread_cond_clockwait rather than the other way round ======================================================================
---------------------------------------------------------------------- (0005385) nick (manager) - 2021-06-17 15:57 https://austingroupbugs.net/view.php?id=1485#c5385 ---------------------------------------------------------------------- Replace paragraph on lines 51671-51676 with: <blockquote>The <i>pthread_cond_clockwait</i>() function shall be equivalent to <i>pthread_cond_wait</i>(), except that an error is returned if the absolute time specified by <i>abstime</i> as measured against the clock indicated by <i>clock_id</i> passes (that is, the current time measured by that clock equals or exceeds <i>abstime</i>) before the condition <i>cond</i> is signaled or broadcasted, or if the absolute time specified by <i>abstime</i> has already been passed at the time of the call. Implementations shall support passing CLOCK_REALTIME and CLOCK_MONOTONIC to <i>pthread_cond_clockwait</i>() as the <i>clock_id</i> argument. When such timeouts occur...[keep final sentence from existing paragraph.] </blockquote> Remove paragraph starting at line 51677. Replace paragraph starting at line 51680 with: <blockquote>The <i>pthread_cond_timedwait</i>() function shall be equivalent to <i>pthread_cond_clockwait</i>(), except that it lacks the <i>clock_id</i> argument. The clock to measure <i>abstime</i> against shall instead come from the condition variable's clock attribute which can be set by <i>pthread_condattr_setclock</i>() prior to the condition variable's creation. If no clock attribute has been set, the default shall be CLOCK_REALTIME.</blockquote> Issue History Date Modified Username Field Change ====================================================================== 2021-06-12 14:08 mikecrowe New Issue 2021-06-12 14:08 mikecrowe Name => Mike Crowe 2021-06-12 14:08 mikecrowe Section => pthread_cond_clockwait 2021-06-12 14:08 mikecrowe Page Number => 1563 2021-06-12 14:08 mikecrowe Line Number => 51671-51684 2021-06-17 15:57 nick Note Added: 0005385 ======================================================================
