Boost Users :
Subject: [Boost-users] [interprocess] mutex in shared memory, crash recovery
From: Jerry Hicks (hickswgjr_at_[hidden])
Date: 2009-12-29 20:11:49
I know the correct answer is to avoid crashing while holding a mutex in
shared memory ;-)
But since I'm handing a system off to other developers I'd like to understand
if there is a most correct way to 'scrub' a mutex in shared memory clean if
a thread crashed while holding the mutex.
Assume that at the point I would like to do this that there is only one
thread attached to the shared memory and no possibility of any thread
attempting to lock the (locked stagnant) mutex.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net