Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

robustness of the interprocess mutex #65

Closed
reed-lau opened this issue Oct 26, 2018 · 0 comments
Closed

robustness of the interprocess mutex #65

reed-lau opened this issue Oct 26, 2018 · 0 comments

Comments

@reed-lau
Copy link

when using interprocess shared memroy, there are about two locks. one is the internal mutex_family used by boost for managing the sharedmemory in MemoryAlgorithm, one is the user's one for synchronation. both mutex will cause deadlock, when process crash. How do you think about it.

the linux provide pthread_mutexattr_setrobust, but the interprocess module do not provide the interface, eg. interprocess:scoped_lock's lock's return value is void instead of int, which could be compare with EOWNERDEAD.

PomLover added a commit to PomLover/interprocess that referenced this issue Nov 9, 2018
…k can grab the lock from previous dead owner. And it also fixed the issue boostorg#65.
PomLover added a commit to PomLover/interprocess that referenced this issue Nov 9, 2018
…grab the lock from previous dead owner to void deadlock. And it also fixed the issue boostorg#65.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant