public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/108836] New: std::mutex disappears in single-threaded libstdc++ builds
@ 2023-02-17 15:27 pdimov at gmail dot com
  2023-02-17 15:39 ` [Bug libstdc++/108836] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pdimov at gmail dot com @ 2023-02-17 15:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108836

            Bug ID: 108836
           Summary: std::mutex disappears in single-threaded libstdc++
                    builds
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pdimov at gmail dot com
  Target Milestone: ---

We've been getting reports in Boost that our uses of <mutex> and std::mutex
don't work in a single-threaded build of libstdc++, so we had to add
configuration macros to avoid these issues. One example is
https://github.com/boostorg/system/commit/53c00841fc0d892bf43cda60e3ea2f05c4362b32,
another https://github.com/boostorg/url/issues/684.

Is there a reason not to make std::mutex available in single threaded builds,
with its operations being no-ops?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-02-17 23:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-17 15:27 [Bug libstdc++/108836] New: std::mutex disappears in single-threaded libstdc++ builds pdimov at gmail dot com
2023-02-17 15:39 ` [Bug libstdc++/108836] " pinskia at gcc dot gnu.org
2023-02-17 15:44 ` pdimov at gmail dot com
2023-02-17 16:10 ` redi at gcc dot gnu.org
2023-02-17 23:35 ` pdimov at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).