Boost logo

Boost :

From: Ben Hutchings (ben.hutchings_at_[hidden])
Date: 2004-09-02 08:39:01


John Maddock <john_at_[hidden]> wrote:
> > The following tests in libs/config/configure produce incorrect
> > results:
> >
> > ** checking for pthread_exit in -lpthread... no
> > This test tries to compile a C source file that prototypes
> > "pthread_exit" as "char pthread_exit();". But my compiler driver
> > always adds "-include <...>/pthread.h" to the command line, which
> > includes a different, conflicting prototype for this function. I
> > think the test ought to include <pthread.h> instead.
>
> Grrrrr, I used the standard autoconf macros for checking this, if I
> get the time I'll try and write my own version that does what you
> suggest.
>
> > ** checking pthread_yield... no
> > This is correct, but I do have a pthread_yield_np() function,
> > maybe we should look for it, too.
>
> It's up to the thread lib guys to use it (or not), maybe you could
> hassle the authors of the thread lib you are using to provide a
> standard function signature?

pthread_yield is non-standard; you should use sched_yield instead
(if at all). See
<http://groups.google.com/groups?selm=3ecbb70c%40usenet01.boi.hp.com>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk