|
Boost Users : |
Subject: Re: [Boost-users] [Interprocess]: using condition variables with readers-writer lock (named_sharable_mutex)
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2016-09-21 05:05:11
El 20/09/2016 a las 16:42, Chris Evans escribió:
> Hi,
>
> I am trying to use condition variables to signify updated data in a
> managed_shared_memory segment. I have one "writer" and multiple
> "readers" of the shared state, so I am using a readers-writer lock as
> follows:
>
> ...
> Unfortunately, although the code compiles, the reader processes are
> never awakened from wait() and block forever.
Looks like a bug. named_condition_any should work with
named_sharable_mutex. Please open a ticket.
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