Advertisement Jump to content
Sign in to follow this  
howie_007

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

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

If you intended to correct an error in the post then please contact us.

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.

 

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();
Edited by GameCodingNinja

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!