Boost logo

Boost Users :

Subject: Re: [Boost-users] [Interprocess]: using condition variables with readers-writer lock (named_sharable_mutex)
From: Chris Evans (chris.evans_at_[hidden])
Date: 2016-09-21 10:15:51


On Wed, Sep 21, 2016 at 5:05 AM, Ion Gaztañaga <igaztanaga_at_[hidden]> wrote:

> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

Thanks for the suggestion. For anyone interested: I've opened a ticket and
included a small example demonstrating the behavior.

https://svn.boost.org/trac/boost/ticket/12476

-- 
Chris Evans
Systems Engineer
Azure Summit Technology, Inc.
3050 Chain Bridge Road, Suite 600
Fairfax, VA 22030


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