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

Defect in XSH pthread_condattr_destroy

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XSH pthread_condattr_destroy
From: yyyyyyyy@xxxxxxx
Date: Mon, 11 Aug 2003 16:20:08 +0100 (BST)
        Defect report from : Loic Domaigne , Personal Interest

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 1041 line 32853 section pthread_condattr_destroy comment 
{pthread_condattr_init, issue EBUSY}

Problem:

Edition of Specification (Year): 2003

Defect code :  2. Omission

References are given against TC1.

In lines 32841-32842, it is said that:

| results are undefined if pthread_condattr_init() is called
| specifying an already initialized attr attributes object. 

However, the standard doesn't define any optional checking for this error.

Action:

At l32853-32858 (§ERRORS), add:

The pthread_condattr_init() may fail if:

[EBUSY]
The implementation has detected an attempt to reinitialize the condition 
variable attribute object referenced by attr, a previously initialized, 
but not yet destroyed, attribute object. 

<Prev in Thread] Current Thread [Next in Thread>
  • Defect in XSH pthread_condattr_destroy, loic-dev <=