为 Windows Phone 8 助力? [英] Boost for Windows Phone 8?

查看:23
本文介绍了为 Windows Phone 8 助力?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何适用于 Windows Phone 8 的 boost 二进制文件?我主要是在寻找基本的东西,比如 shared_ptr 和线程.请注意,线程需要为 ARM 构建并使用正确的平台调用,而 shared_ptr 可以直接使用.

Are there any boost binaries available for Windows Phone 8? I'm mostly looking for the basic stuff such as shared_ptr and threading. Note that threading needs both to be build for ARM and use the correct platform calls, while shared_ptr works right of the bat.

如果没有,我如何为 Windows Phone 8 构建 boost::thread?

If not, how do I build boost::thread for Windows Phone 8?

更新:我检查了 WinRT API 和 boost 源.boost 中的 Windows 线程在很大程度上依赖于线程本地存储 (TLS),但这在 WinRT 上不受支持.然而,似乎有一些光纤本地存储(FLS),但它并不完全相同.

Update: I checked out the WinRT API and the boost source. The windows threading in boost relies heavily on Thread Local Storage (TLS), but this is not supported on WinRT. However, there seems to be some Fiber Local Storage (FLS), but it's not quite the same thing.

推荐答案

有一个官方页面日期为 2014 年 7 月 18 日,确认Boost 中的一些库使用 APIWindows 应用商店和手机应用程序中不提供的应用,正如我们对 Boost 构建系统进行了改进,以支持面向 Windows 应用商店和手机的 Windows 运行时.

There is an official page on this dated of 18 Jul 2014, confirming that some of the libraries in Boost use APIs that aren’t available in Windows Store and Phone applications, and as so saying We’ve made improvements to the Boost build system to support targeting the Windows Runtime for Windows Store and Phone.

这篇关于为 Windows Phone 8 助力?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆