This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Attachment: gthr-posix-patch.txt
Description: Text document

Attachment: gthr-v3-configury-bits.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]