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

Defect in XSH pthread_cond_timedwait()

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XSH pthread_cond_timedwait()
From: yyyyyyy@xxxxxxxxxx
Date: Thu, 13 Feb 2003 23:04:50 GMT
        Defect report from : Ulrich Drepper , Red Hat

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 1032 line 32488 section pthread_cond_timedwait() objection {ud-cond-1}

Problem:

Defect code :  1. Error

The pthread_cond_timedwait() man page currently says:

When the cancelability enable state of a thread is set to 
PTHREAD_CANCEL_DEFERRED,


The problem is that PTHREAD_CANCEL_DEFERRED is no cancellation state value, but 
a cancellation type value.  See pthread_setcancelstate() vs 
pthread_setcanceltype().

Action:

Change line 32488 to

type of a thread is set to PTHREAD_CANCEL_DEFERRED, a side effect of acting 
upon a


(note the first word is now "type" instead of "state").

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