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

Started by
-1 comments, last by howie_007 8 years, 3 months ago

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.

std::packaged_task not ready for prime time on NDK 10?


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

        //Transform();

This topic is closed to new replies.

Advertisement