2010/8/26 Ruben Van Boxem <vanboxem.ru...@gmail.com>:
>
>>
>> but poking around, I do not find a "thread" file (the include file
>> for std::thread).
>
> it should be in:
> <gcc-src>/libstdc++-v3/include/std
>
>>
>> My mingw gcc installation does have a "thread" file.  (I realize that
>> it may be out of date, but it's all I have.)  I see, as Ruben pointed
>> out, that it references (either directly or indirectly)
>>
>>   __gthread_cond_t
>>   __gthread_time_t
>>
>> (and related), and that these are not defined in gthr-win32.h.
>
> As I said, *time_t is easy, but *cond_t seems like a big problem, because
> the whole concept of threading is different and there's far from a 1-on-1
> mapping of *cond_t to win32 API. Once we have that struct though, it should
> be quite straightforward to get the functions implemented. The gthr-win32.h
> header is located in
>
> gcc trunk/4.6 snapshot:
> gcc/gthr-win32.h
> gcc/config/i386/gthr-win32.c
>
> This last one will either need
>
>>
>> Do I take it correctly that the windows version of gthreads does
>> not implement all of the features in the linux/posix version, and
>> that some of these features are needed by the gcc implementation
>> of std::thread?
>>
>> And that our discussion here is basically about sticking with the
>> existing gcc implementation of std::thread and getting it to work
>> on windows by adding the missing features to the windows
>> version of gthreads?
>
> Correct.

As I said before, if those functions are implemented in
gcc/gthr-win32.h and gcc/config/i386/gthr-win32-c, then we can define
in gthr-win32.h the define to support CXX0X.

Kai


-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to