Boost logo

Boost Users :

Subject: Re: [Boost-users] [Interprocess] deadlocking race condition in emulation interprocess_condition.hpp
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2009-09-17 02:32:45


Young, Zachariah L escribió:
> Actually, why lock the m_check_mut at all?
>
> Why not delete that whole thing and remove the m_check_mut from the
class entirely, as it apparently exists only to synchronize the get and
set of m_command on line 177 (before any edits), which is an atomic
compare-and-set (ie, doesn't need synchronization)?
>
> -Zach

I reach the same conclusion just a minute ago. Could you test your code
removing this mutex?

Best,

Ion


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