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

Defect in XSH pthread_attr_getinheritsched()

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

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 985 line 31346 section pthread_attr_getinheritsched() objection 
{ptattr-1}

Problem:

Defect code :  2. Omission

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

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

I would guess the default value is PTHREAD_INHERIT_SCHED but I'm not sure at 
all.

Action:

Add new paragraph after line 31245.  Add either

  The default value of the /inheritsched/ attribute is 
<t>PTHREAD_INHERIT_SCHED<t>


or add

  The default value of the /inheritsched/ attribute is
<t>PTHREAD_EXPLICIT_SCHED<t>

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