[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
gcc-bugzilla@gcc.gnu.org
Fri Dec 23 13:37:07 GMT 2022
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
More information about the Gcc-bugs
mailing list