public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/108210] New: error: 'mutex' does not name a type; did you mean 'minutes'? for x86_64-w64-mingw32 target with win32 thread model
@ 2022-12-23 13:37 unlvsur at live dot com
  2022-12-23 13:40 ` [Bug libstdc++/108210] " unlvsur at live dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: unlvsur at live dot com @ 2022-12-23 13:37 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108210
           Summary: error: 'mutex' does not name a type; did you mean
                    'minutes'? for x86_64-w64-mingw32 target with win32
                    thread model
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: unlvsur at live dot com
  Target Milestone: ---

/home/cqwrteur/toolchains_build/gcc/libstdc++-v3/src/c++20/tzdb.cc:565:5:
error: 'mutex' does not name a type; did you mean 'minutes'?
  565 |     mutex infos_mutex;
      |     ^~~~~
      |     minutes

Win32 thread model does not provide mutex, lock_guard, and other threading
mechanism.

However. this can be implemented easily with win32 CriticalSection API.
https://github.com/cppfastio/fast_io/blob/master/include/fast_io_hosted/threads/mutex/win32_critical_section.h

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

end of thread, other threads:[~2023-01-04 14:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-23 13:37 [Bug libstdc++/108210] New: error: 'mutex' does not name a type; did you mean 'minutes'? for x86_64-w64-mingw32 target with win32 thread model unlvsur at live dot com
2022-12-23 13:40 ` [Bug libstdc++/108210] " unlvsur at live dot com
2022-12-26 15:07 ` nightstrike at gmail dot com
2022-12-26 15:10 ` i.nixman at autistici dot org
2022-12-26 15:12 ` i.nixman at autistici dot org
2022-12-26 15:13 ` i.nixman at autistici dot org
2022-12-26 20:45 ` i.nixman at autistici dot org
2023-01-04 11:56 ` redi at gcc dot gnu.org
2023-01-04 13:38 ` redi at gcc dot gnu.org
2023-01-04 14:06 ` i.nixman at autistici dot org

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).