[Bug libstdc++/60966] std::call_once sometime hangs

2014-05-13 Thread hideaki.kimura at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60966 Hideaki Kimura changed: What|Removed |Added CC||hideaki.kimura at gmail dot com

[Bug libstdc++/60966] std::call_once sometime hangs

2014-05-14 Thread hideaki.kimura at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60966 --- Comment #14 from Hideaki Kimura --- (In reply to Jonathan Wakely from comment #13) > This means you are waiting on an object that has gone out of scope. WIthout > more information it's not possible to tell if this is a bug in your program > o

[Bug libstdc++/60966] std::call_once sometime hangs

2014-05-15 Thread hideaki.kimura at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60966 --- Comment #17 from Hideaki Kimura --- (In reply to Jonathan Wakely from comment #16) > promise::get_future() is a non-const function that modifies the promise > object, therefore it must not be called while any other object is accessing > the p

[Bug libstdc++/60966] std::call_once sometime hangs

2014-05-15 Thread hideaki.kimura at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60966 --- Comment #22 from Hideaki Kimura --- Ah, you are right, set_value() might have context switch after signaling before exitting. ... ah, and that's why what Thomas initially posted could also see a hang. { // copy-paste again to refresh memory,