11 Feb
2010
11 Feb
'10
11:29 p.m.
On Feb 11, 2010, at 5:11 PM, Carla Strembicke wrote:
My question is with regard to named_mutexes that are abandoned by a process that dies abnormally.
Is there any support in the boost mutex to determine if the mutex has been abandoned?
I think not yet, though this has been discussed in the past.
Any other suggestions?
What you want is called a "robust" mutex in the Unix world; search for pthread_mutexattr_setrobust and pthread_mutex_consistent. Reasonably recent versions of Linux have them (kernel support showed up in 2.6.17or18, I forget which). Some other Unix variants also support them (I think they may have been around in Sun variants for quite a while, for example).