pthread_mutex_t in bionic libc

250 Views Asked by At

I am trying to port a code that uses glibc into Android NDK and running into some issues related to mutexes. Currently our code uses mutex.__data.__count to cycle through all the locks, and release them one by one, we are also using it to check whether there's a lock on that mutex, but unfortunately bionic libc's pthread_mutex_t struct has only one member value Anyone has any idea on how to solve this?

0

There are 0 best solutions below