[Bug libstdc++/58929] condition_variable does not wait without -pthread

2020-11-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58929 --- Comment #11 from Jonathan Wakely --- (In reply to Victor Mataré from comment #10) > OK, thanks for the clarification. But I feel I need to point out that that's > just a huge WTF. How is a C++ dev supposed to know from the standard docs > the

[Bug libstdc++/58929] condition_variable does not wait without -pthread

2020-04-18 Thread mat...@fh-aachen.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58929 --- Comment #10 from Victor Mataré --- (In reply to Jonathan Wakely from comment #9) > The GNU libc has no-op stubs for several pthread functions. I think that is > done so that single threaded programs which don't actually need those > functions

[Bug libstdc++/58929] condition_variable does not wait without -pthread

2020-04-18 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58929 --- Comment #9 from Jonathan Wakely --- The GNU libc has no-op stubs for several pthread functions. I think that is done so that single threaded programs which don't actually need those functions can still link to libraries that have references t

[Bug libstdc++/58929] condition_variable does not wait without -pthread

2020-04-18 Thread mat...@fh-aachen.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58929 Victor Mataré changed: What|Removed |Added CC||mat...@fh-aachen.de --- Comment #8 from

[Bug libstdc++/58929] condition_variable does not wait without -pthread

2014-09-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58929 --- Comment #7 from Jonathan Wakely --- related to PR 55394

[Bug libstdc++/58929] condition_variable does not wait without -pthread

2013-10-31 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58929 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #6 f

[Bug libstdc++/58929] condition_variable does not wait without -pthread

2013-10-31 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58929 --- Comment #5 from Jonathan Wakely --- Also, some people compile without -pthread then link with -lpthread manually. We could say that's technically unsupported, but currently it works.

[Bug libstdc++/58929] condition_variable does not wait without -pthread

2013-10-31 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58929 --- Comment #4 from Jonathan Wakely --- I don't think -pthread sets _REENTRANT for all targets, although it might do for all those where we actually support std::condition_variable.

[Bug libstdc++/58929] condition_variable does not wait without -pthread

2013-10-31 Thread lundberj at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58929 --- Comment #3 from Johan Lundberg --- (In reply to Jonathan Wakely from comment #2) > I suppose we could turn all timed waiting functions into sleeps, and wait() > into an infinite loop, when libpthread is not linked in, but I'd prefer not > to a

[Bug libstdc++/58929] condition_variable does not wait without -pthread

2013-10-31 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58929 --- Comment #2 from Jonathan Wakely --- I suppose we could turn all timed waiting functions into sleeps, and wait() into an infinite loop, when libpthread is not linked in, but I'd prefer not to add that complexity.

[Bug libstdc++/58929] condition_variable does not wait without -pthread

2013-10-31 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58929 --- Comment #1 from Jonathan Wakely --- I'm not really sure what we can do here. You need to use -pthread.