Pavel Punsky
Pavel Punsky

Reputation: 197

std::thread in Android NDK gets stuck spuriosly

We are building a Java/native library that has networking and video image processing in native (written mostly using c++11) and developer interface in Java.

The problem is that the whole thing gets stuck very often during jni calls. We use latest ndk-r8e and have multiple threads running in native, created using std::thread.

Any idea is welcome.

Upvotes: 1

Views: 459

Answers (1)

Pavel Punsky
Pavel Punsky

Reputation: 197

In the end we used boost::thread instead of std::thread and that solved our problems. I guess NDK r8e has really bad C++11 support.

Upvotes: 1

Related Questions