[PATCH] posix gthreads additions for c++0x thread library
Paolo Carlini
paolo.carlini@oracle.com
Mon Aug 18 22:30:00 GMT 2008
Chris Fairles wrote:
> But is _GTHREAD_HAS_COND alone appropriate? There are other things
> like __gthread_time_t, sched_yield, pthread_self that aren't related
> but are still required.
Exactly.
> I like the __GTHREADS_CXX0X idea. Simply
> define that in any gthr-*.h header that defines ALL required types and
> functions that the c++0x library uses. Something like the attached
> (untested)?
>
Right. I meant exactly something like that. Could you please test it?
And of course move the check itself in configure.ac *outside* native,
before the conditional, it can definitely run both for native and crosses.
We should ask to Mark whether he agrees with the name of the new macro,
or we should have something more fine-grained...
Paolo.
More information about the Gcc-patches
mailing list