3

I found the pthread.h in android ndk does not include robust futexes functions, so what should I do if I want to access a shared memory(mmap) between multiple processes?

PS: Now, I use std::shared_mutex + fcntl, which the shared_mutex is for thread, and the fcntl is for process and would release the lock when process crash. It works, but dirty.

Celada
  • 21,627
  • 4
  • 64
  • 78
alpha
  • 1,228
  • 1
  • 11
  • 26

0 Answers0