Email List: Xaustin-review-lX
[All Lists]

Defect in XSH pthread_cond_timedwait

To: austin-review-l@xxxxxxxxxxxxx
Subject: Defect in XSH pthread_cond_timedwait
From: Geoff Clare <gwc@xxxxxxxxxxxxx>
Date: Fri, 9 Jan 2009 15:47:43 +0000
@ page 1587 line 51027-51034 section pthread_cond_timedwait editorial [gwc pctw 
timeout]

Problem:

Edition of Specification (Year): 2008

Defect code :  3. Clarification required

In the description of pthread_cond_timedwait(), a statement about the
clock attribute and a paragraph break have been inserted between two
closely related sentences.  The text should be rearranged in order
to reunite the related sentences.

Action:

In the two paragraphs:

    The pthread_cond_timedwait() function shall be equivalent to
    pthread_cond_wait(), except that an error is returned if the
    absolute time specified by abstime passes (that is, system time
    equals or exceeds abstime) before the condition cond is signaled
    or broadcasted, or if the absolute time specified by abstime has
    already been passed at the time of the call.

    The condition variable shall have a clock attribute which
    specifies the clock that shall be used to measure the time
    specified by the abstime argument. When such timeouts occur,
    pthread_cond_timedwait() shall nonetheless release and re-acquire
    the mutex referenced by mutex.  The pthread_cond_timedwait()
    function is also a cancellation point.

move the sentence beginning "When such timeouts occur" to the end
of the first of the paragraphs.

<Prev in Thread] Current Thread [Next in Thread>