Boost for Windows Phone 8?

Are there any binaries for Windows Phone 8? I am mainly looking for basic things like shared_ptr

threading. Note that streaming requires both an ARM build and using the correct platform calls, whereas it shared_ptr

works to the right of the bat.

If not, how do I build boost::thread

for Windows Phone 8?

Update: I checked the WinRT API and the boost source. Streaming windows in a stream rely heavily on Stream Local Storage (TLS), but this is not supported in WinRT. However, there seems to be Fiber Local Storage (FLS), but it's not exactly the same.

+3
boost windows-phone-8


source to share


3 answers


There is an official page from this release dated July 18, 2014 confirming that some of the libraries in Boost use APIs that are available in the Windows Store and Phone, and as we said, Weve improved the Boost build system to support Windows Runtime targeting for Windows Store and phone.



+1


source to share


I am compiling against some static libraries that rely on promotion, so I don't think there is a problem at all.



0


source to share


As of Visual Studio 2013 Update 4, you can compile the source that uses the TLS

API
as they are implemented as inline strings that are FLS

API
(which are Store compatible). Obviously, precompiled binaries won't work as they will try to link directly to TLS

.

FYI the reason is TLS

deprecated / forbidden because there is a possibility of a memory leak if the thread exits. If you are using APIs TLS

in Store apps, they will have the same problem with potential memory leaks ( FlsCallback

provided by FlsAlloc

- null

), so consider switching to TLS

and providing a cleanup function.

0


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics