[LLVMbugs] [Bug 21995] Infrequent deadlocks with std::future
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Dec 19 23:32:59 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=21995
David Majnemer <david.majnemer at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from David Majnemer <david.majnemer at gmail.com> ---
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 http://stackoverflow.com/a/11448290 and http://stackoverflow.com/a/12527892
for more details.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141220/e3e0659e/attachment.html>
More information about the llvm-bugs
mailing list