March 2013
Intermediate to advanced
346 pages
8h 4m
English
The previous two recipes cover thread synchronization with mutex and conditional variables. This recipe discusses reader/writer locks in Android NDK.
Readers are recommended to read the previous two recipes, Synchronizing native threads with mutex at Android NDK and Synchronizing native threads with conditional variables at Android NDK, before going through this one.
The following steps will help you create an Android project that demonstrates the usage of the pthread reader/writer lock:
NativeThreadsRWLock. Set the package name as cookbook.chapter6.nativethreadsrwlock. Refer to the Loading native libraries and ...