Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost Interprocess condition variables
From: Zeljko Vrba (zvrba_at_[hidden])
Date: 2009-01-09 14:33:18


On Fri, Jan 09, 2009 at 10:06:00AM +0100, Federico Golfrè Andreasi wrote:
> Hi!
>
> I'm using condition variables of Boost.interprocess 1.36.0 to manage a
> synchronized access to a shared memory segment by two tasks.
> I found a problem when: task 1 is waiting on a condition variable and task 2
> crashes during his execution, so task 1 waits forever on that variable.
>
> How can I kill also task 1?
>
On UNIX, process 1 should get SIGCHLD when process 2 terminates in any way.
The signal should interrupt waiting on the condition variable. By
installing the appropriate signal handler, you can terminate process 1.
I'm not sure how to do this under Windows.


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