Here is Windows API, that almost matches that on POSIX platforms:
http://msdn.microsoft.com/en-us/library/ms682052(VS.85).aspx

On 31.8.2010 7:28, NightStrike wrote:
> On Thu, Aug 26, 2010 at 7:18 AM, Kai Tietz<[email protected]>  wrote:
>> 2010/8/26 Ruben Van Boxem<[email protected]>:
>>>
>>>>
>>>> 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.
>>
>
> Adding GD to the list
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to