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

Defect in XSH pthread_mutexattr_getprotocol

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XSH pthread_mutexattr_getprotocol
From: Geoff Clare <yyy@xxxxxxxxxxxxx>
Date: Tue, 28 Feb 2006 10:47:54 +0000
@ page 1113 line 35230 section pthread_mutexattr_getprotocol objection [gwc 
mutex protocol default]

Problem:

Defect code :  2. Omission

The pthread_mutexattr_getprotocol page does not contain any statement
about the default value for the mutex protocol attribute (whereas the
pthread_mutexattr_getpshared and pthread_mutexattr_gettype pages both
do have a statement about the default for the corresponding attributes).

It should either specify the default value or state that it is
implementation-defined.  My feeling is that it would make sense for
the default mutex behaviour to be the same on systems that support
the TPI or TPP options as it is on systems that support neither of
those options, in which case the default should be specified as
PTHREAD_PRIO_NONE.  However, this may not be acceptable to
implementors who already have one of the other values as the default.

Action:

Append to line 35230 either:

    "The default value of the attribute shall be PTHREAD_PRIO_NONE."

or:

    "The default value of the attribute is implementation-defined."

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