Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9124: Boost.Thread using of _beginthreadex prohibits its use on Windows Store application
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-09-29 11:38:31
#9124: Boost.Thread using of _beginthreadex prohibits its use on Windows Store
application
--------------------------------------+-------------------------
Reporter: beholder@⦠| Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: config
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------+-------------------------
Comment (by johnmaddock):
I've done some digging, and:
* It appears that {{{__cplusplus_winrt}}} is defined when building with
/ZW can you confirm that?
* Simply disabling BOOST_HAS_THREADEX doesn't seem the correct solution:
calling that API is required in order to correctly initialize the C++
runtime library, in any case http://msdn.microsoft.com/en-
us/library/windows/apps/jj606124.aspx indicates that '''all''' the Windows
Thread API functions are missing/deprecated on that platform, and that the
C# components should be used instead :(
So I don't really see that there's a quick/easy fix here. Maybe we should
disable threading support altogether for that platform? Except that would
disable thread safety/synchronization support as well, and I don't see
mutex support in the C# primitives - is code supposed to still use the
regular Windows API's for that? Or perhaps we should be using
http://msdn.microsoft.com/en-us/library/dd492843.aspx? Either way it
seems like Boost.Threads would need a significant rewrite to support this
stuff.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9124#comment:14> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC