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

Defect in XSH pthread_barrierattr_destroy

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

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 1016 line 32061 section pthread_barrierattr_destroy comment 
{pthread_barrierattr_init, issue EBUSY}

Problem:

Edition of Specification (Year): 2003

Defect code :  2. Omission

References are given against TC1.

In lines 32053-32054, it is said that:

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

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

Action:

At l32061-32066 (§ERRORS), add:

The pthread_barrierattr_init() may fail if:

[EBUSY]
The implementation has detected an attempt to reinitialize the barrier 
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_barrierattr_destroy, loic-dev <=