Boost.Thread threads not starting on the iPhone/iPad in release builds

不打扰是莪最后的温柔 提交于 2019-12-01 10:49:57

We've now worked this out. The problem is in the build options, and the clue is that it is the spin locks that are failing.

It turns out that there is an ARM implementation of the spin lock which is used in non-thumb builds. Because of the way that the thumb builds are done it is very easy to mix thumb and non-thumb builds (i.e., build Boost without thumb and have xCode build with thumb). This is what we were doing, and this means that the spin lock will never get signalled and will just block forever.

So, to solve this, make sure that you are using the same thumb build options for all of your libraries!

This thread discusses the problem: http://groups.google.com/group/boost-list/browse_thread/thread/7dc1e80659182ab3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!