Subject: Re: "Missing" pthread functions
To: Havard Eidnes <>
From: Jason R Thorpe <>
List: current-users
Date: 02/02/2003 16:02:43
On Mon, Feb 03, 2003 at 12:55:02AM +0100, Havard Eidnes wrote:

 > One of the things he noted was that the following functions appear to
 > be "missing" in our pthread library:
 >     pthread_attr_setstacksize
 >     pthread_getschedparam
 >     pthread_setschedparam

They're not "missing" so much as "optional".  POSIX specifies CPP
macros that a system defines in <unistd.h> when these features are
provided by the thread library.

 > I'll admit that I don't know pthreads much myself, and these may be
 > optional, but I thought I'd ask anyway whether there are any plans on
 > adding these functions later on.

There are plans to add them eventually.

 > BTW, my friends' tests weren't entirely successful; I'm trying to get
 > him to produce a minimal example which demonstrates the problems he
 > were observing, and we'll see if he comes through on that.

Bug reports with test cases are always good :-)

        -- Jason R. Thorpe <>