Boost C++ Libraries: Ticket #8008: boost named_condition under Windows https://svn.boost.org/trac10/ticket/8008 <p> Simple problem, reduced to it's simplest form. </p> <h2 class="section" id="NamedConditionServer.cpp"><a class="missing wiki">NamedConditionServer</a>.cpp</h2> <pre class="wiki">#include &lt;boost/interprocess/sync/named_mutex.hpp&gt; #include &lt;boost/interprocess/sync/named_condition.hpp&gt; namespace ipc = boost::interprocess; int main() { unsigned long long count = 0; ipc::named_mutex myMutex( ipc::open_or_create, "BoostConditionTestMutex" ); ipc::named_condition myCondition( ipc::open_or_create, "BoostConditionTestCondition" ); ipc::scoped_lock&lt;ipc::named_mutex&gt; lock( myMutex ); for(;;) { myCondition.wait( lock ); std::cout &lt;&lt; "Served # " &lt;&lt; ++count &lt;&lt; std::endl; } return 0; } </pre><h2 class="section" id="NamedConditionClient.cpp"><a class="missing wiki">NamedConditionClient</a>.cpp</h2> <pre class="wiki">#include &lt;boost/interprocess/sync/named_mutex.hpp&gt; #include &lt;boost/interprocess/sync/named_condition.hpp&gt; namespace ipc = boost::interprocess; int main() { ipc::named_condition myCondition( ipc::open_or_create, "BoostConditionTestCondition" ); myCondition.notify_one(); } </pre><p> Under Linux, I can run the server in another window or the background and it responds as expected when I run the client. </p> <p> On Windows7 (Visual Studio 2012 Update 1) however, the server never wakes up from the "wait". </p> <p> I have tried under the debugger and have removed "C:\<a class="missing wiki">ProgramData</a>\boost_interprocess" between runs to no avail. </p> <p> After running, there is just one "<a class="missing wiki">BoostConditionTestCondition</a>" and just one "<a class="missing wiki">BoostConditionTestMutex</a>" file in the "C:\<a class="missing wiki">ProgramData</a>\boost_interprocess" tree. </p> <p> This appears to be a bug to me, but I'd welcome suggestions to the contrary. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8008 Trac 1.4.3 Ion Gaztañaga Sat, 09 Feb 2013 17:19:45 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8008#comment:1 https://svn.boost.org/trac10/ticket/8008#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> thanks for the report and specially the test case. It's a bug and it's a duplicate of <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/7682" title="#7682: Bugs: boost 1.52 named_mutex/named_condition pairing broken (reopened)">#7682</a> </p> Ticket Ion Gaztañaga Sat, 09 Feb 2013 17:46:08 GMT <link>https://svn.boost.org/trac10/ticket/8008#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8008#comment:2</guid> <description> <p> <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/7682" title="#7682: Bugs: boost 1.52 named_mutex/named_condition pairing broken (reopened)">#7682</a> fixed, can you test if your bug was fixed? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sat, 09 Feb 2013 17:49:14 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8008#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8008#comment:3</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/8008#comment:2" title="Comment 2">igaztanaga</a>: </p> <blockquote class="citation"> <p> <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/7682" title="#7682: Bugs: boost 1.52 named_mutex/named_condition pairing broken (reopened)">#7682</a> fixed, can you test if your bug was fixed? </p> </blockquote> <p> Thanks! </p> <p> It's a bug from work and I don't have the resources at home to do that. I will check on Monday US Pacific time, but it's a simple test that I'm sure someone else will probably have already run by then. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 11 Feb 2013 17:58:48 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8008#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8008#comment:4</guid> <description> <p> Both Linux and Windows are working using SVN Revision 82818. </p> </description> <category>Ticket</category> </item> </channel> </rss>