Boost C++ Libraries: Ticket #12958: sync_bounded_queue::wait_pull_front( lve ) might throw
https://svn.boost.org/trac10/ticket/12958
<p>
Expected behavior:
</p>
<blockquote>
<p>
A call to to <code>sync_bounded_queue<T>::wait_pull_front</code> can only throw via <code>T</code>'s assignment operator. If the queue is closed, this is reported via the return value.
</p>
</blockquote>
<p>
Actual behavior:
</p>
<blockquote>
<p>
<code>sync_bounded_queue<T>::wait_pull_front</code> might spuriously throw a <code>sync_queue_is_closed</code> error.
</p>
</blockquote>
<p>
Line 486 of <code>sync_bounded_queue.hpp</code> (current github master) checks if the queue is empty and closed; however the very next line calls the one-argument overload of <code>wait_until_not_empty</code>, which might throw if the queue became closed and empty in the meantime. <code>wait_pull_front</code> should use the overload of <code>wait_until_not_empty</code> which returns a <code>closed</code> flag.
</p>
en-usBoost C++ Libraries/htdocs/site/boost.png
https://svn.boost.org/trac10/ticket/12958
Trac 1.4.3viboesSat, 29 Apr 2017 02:31:27 GMTowner, status changed
https://svn.boost.org/trac10/ticket/12958#comment:1
https://svn.boost.org/trac10/ticket/12958#comment:1
<ul>
<li><strong>owner</strong>
changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span>
</li>
<li><strong>status</strong>
<span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span>
</li>
</ul>
TicketviboesSat, 29 Apr 2017 15:59:19 GMTmilestone changed
https://svn.boost.org/trac10/ticket/12958#comment:2
https://svn.boost.org/trac10/ticket/12958#comment:2
<ul>
<li><strong>milestone</strong>
<span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.65.0</span>
</li>
</ul>
<p>
<a class="ext-link" href="https://github.com/boostorg/thread/commit/51b367df53bc2f9a3f720cc062d997fb4eb89571"><span class="icon"></span>https://github.com/boostorg/thread/commit/51b367df53bc2f9a3f720cc062d997fb4eb89571</a>
</p>
TicketviboesSat, 24 Jun 2017 14:56:02 GMTstatus changed; resolution set
https://svn.boost.org/trac10/ticket/12958#comment:3
https://svn.boost.org/trac10/ticket/12958#comment:3
<ul>
<li><strong>status</strong>
<span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span>
</li>
<li><strong>resolution</strong>
→ <span class="trac-field-new">fixed</span>
</li>
</ul>
Ticket