Boost logo

Boost Users :

Subject: Re: [Boost-users] interprocess_condition::wait(scoped_lock<interprocess_upgradable_lock> &) missing
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2011-02-03 13:22:33


El 03/02/2011 2:16, John Ky escribió:
> Hi boost users,
>
> I've discovered that the following doesn't compile.
>
> using namespace boost::interprocess;
> interprocess_upgradable_mutex mutex;
> interprocess_condition cv;
> boost::posix_time::ptime deadline;

Condition variables are only compatible with interprocess_mutex. I think
they have no sense with other types of locks, because a mutex and a
condition variable should know each other. In POSIX, condition variables
are not compatible even with POSIX recursive locks, not to mention user
defined locking primitives.

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