[PATCH] posix gthreads additions for c++0x thread library

Chris Fairles chris.fairles@gmail.com
Mon Aug 18 21:59:00 GMT 2008


On Mon, Aug 18, 2008 at 5:56 PM, Chris Fairles <chris.fairles@gmail.com> wrote:
> On Mon, Aug 18, 2008 at 5:36 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
>> Paolo Carlini wrote:
>>>
>>> In other terms: wouldn't it be possible to prepare an autoconf test
>>> completely similar to [GLIBCXX_ENABLE_THREADS], thus looking inside
>>> $gthread_file with grep. To make things easier could be defined a new
>>> __GTHREADS_CXX0X or something like that?
>>
>> Actually, __GTHREAD_HAS_COND already exists, grepping for something similar,
>> corresponding to the new functionalities seems absolutely doable to me.
>>
>> Paolo.
>>
>
> 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. 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)?
>
> Chris
>

Forgot to move the check in configure.ac into the "unconditional"
section. That was what I intended.

Chris



More information about the Libstdc++ mailing list