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.
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.
source to share