Boost logo

Boost :

Subject: [boost] [interprocess] named_condition
From: Jan Stetka (janpstetka_at_[hidden])
Date: 2008-12-03 15:12:35


The program stops running when it reaches cond.wait(...);
This works ok when its compiled on its own but not with the rest of my code.

boost::interprocess::named_mutex
nm(boost::interprocess::create_only,"STOP_PH_MTX");

boost::interprocess::named_condition
cond(boost::interprocess::create_only,"STOP_PH_CND");
            boost::interprocess::scoped_lock<boost::interprocess::named_mutex>
stop_ph_lock(nm);

cond.wait(stop_ph_lock);
boost::interprocess::named_mutex::remove("STOP_PH_MTX");
boost::interprocess::named_condition::remove("STOP_PH_CND");


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk