March 2013
Intermediate to advanced
346 pages
8h 4m
English
This recipe discusses how to use pthread mutex at Android NDK.
The following steps help to create an Android project that demonstrates the usage of pthread mutex:
NativeThreadsMutex. Set the package name as cookbook.chapter6.nativethreadsmutex. Refer to the Loading native libraries and registering native methods recipe in Chapter 2, Java Native Interface for more detailed instructions.MainActivity.java under the cookbook.chapter6.nativethreadsmutex package. This Java file simply loads the native NativeThreadsMutex library and calls ...