Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我发现android ndk中的pthread.h不包含强大的futexes函数,那么如果我想访问多个进程之间的共享内存(mmap)该怎么办?
PS:现在,我使用std::shared_mutex + fcntl,其中shared_mutex是线程的,fcntl是进程的,当进程崩溃时会释放锁。它有效,但很脏。