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

Defect in XSH pthread_attr_getscope()

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XSH pthread_attr_getscope()
From: yyyyyyy@xxxxxxxxxx
Date: Thu, 13 Feb 2003 09:43:42 GMT
        Defect report from : Ulrich Drepper , Red Hat

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 991 line 31490 section pthread_attr_getscope() objection {ptattr-3}

Problem:

Defect code :  2. Omission

The standard does not mention anywhere the default value of the value retrieved 
via pthread_attr_getscope() after a call to
pthread_attr_init().

The pthread_attr_getguardsize() man page does contain the appropriate 
information.

I don't know what the default value should be.  If I would have to pick I'd 
chose PTHREAD_SCOPE_SYSTEM.

Action:

Add new paragraph after line 31490 either:

  The default value of the /contentionscope/ attribute is 
<t>PTHREAD_SCOPE_SYSTEM<t>


or

  The default value of the /contentionscope/ attribute is 
<t>PTHREAD_SCOPE_PROCESS<t>

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