Boost logo

Boost Users :

Subject: Re: [Boost-users] [interprocess] 1.40 compile error
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2009-09-12 13:07:28


Moritz escribió:
> Ion Gaztañaga wrote:
>> Are you using a named_mutex with named_condition? named_condition does
>> not work with interprocess_mutexeses. I think the line says it:
>
> I am using it with:
>
> sharable_lock<named_upgradable_mutex> lock(mtx)
> named_condition.wait(lock)

It should be named_mutex. Condition variables are only compatible with
plain mutexes, not sharable or upgradable mutexes. That assertion was
added to verify this at compile time.

> Best regards,
> Moritz

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