<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:david.majnemer@gmail.com" title="David Majnemer <david.majnemer@gmail.com>"> <span class="fn">David Majnemer</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Infrequent deadlocks with std::future"
href="http://llvm.org/bugs/show_bug.cgi?id=21995">bug 21995</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Infrequent deadlocks with std::future"
href="http://llvm.org/bugs/show_bug.cgi?id=21995#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Infrequent deadlocks with std::future"
href="http://llvm.org/bugs/show_bug.cgi?id=21995">bug 21995</a>
from <span class="vcard"><a class="email" href="mailto:david.majnemer@gmail.com" title="David Majnemer <david.majnemer@gmail.com>"> <span class="fn">David Majnemer</span></a>
</span></b>
<pre>Upon greater reflection, it's been made aware to me that you are not permitted
to race promise::set_value with its destructor. The only thing that
promise::set_value needs to do atomically is to atomically *update* the promise
object.
see <a href="http://stackoverflow.com/a/11448290">http://stackoverflow.com/a/11448290</a> and <a href="http://stackoverflow.com/a/12527892">http://stackoverflow.com/a/12527892</a>
for more details.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>