android NDK mutex locking
问题 I've been porting a cross platform C++ engine to Android, and noticed that it will inexplicably (and inconsistently) block when calling pthread_mutex_lock . This engine has already been working for many years on several platforms, and the problematic code hasn't changed in years, so I doubt it's a deadlock or otherwise buggy code. It must be my port to Android.. So far there are several places in the code that block on pthread_mutex_lock. It isn't entirely reproducible either. When it hangs,