NDK 10, std::packaged_task hoses build on an odd way

This topic is 736 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

As a side note, std::future will not build on armeabi but will build on armeabi-v7a.

I'm trying to use std::packaged_task but it breaks my build in an odd way. My app will run on the phone but will lockup before it even gets near the code using the std::packaged_task. I can tell this because there is a graphic that will show before getting into the main game loop and if I put a delay as the first line in main, I'll never see the graphic. Even if I put a break point on the below code, it never get's hit.

Below is some example code that will cause the build to lock up before the code reached that point. Just the fact that the code is present somewhere seems to cause this problem.

void CMenu::DoTransform()
{
if( m_visible )
{
// Test code
auto task = [this] { this->Transform(); };

package();

//Transform();

Edited by GameCodingNinja