Skip to content

win32 threading model #2

@palves

Description

@palves

I saw the GCC that comes with xpack uses the posix threading model. In GCC 13, the GCC win32 threading model implementation was rewritten, and it can now support C++11 std::thread and friends.

See gcc commit 9149a5b7e0a66b7b94d5b7db3194a975d18dea2f, which says:

    Reimplement GNU threads library on native Windows
    
    This reimplements the GNU threads library on native Windows (except for the
    Objective-C specific subset) using direct Win32 API calls, in lieu of the
    implementation based on semaphores.  This base implementations requires
    Windows XP/Server 2003, which was the default minimal setting of MinGW-W64
    until end of 2020.  This also adds the support required for the C++11 threads,
    using again direct Win32 API calls; this additional layer requires Windows
    Vista/Server 2008 and is enabled only if _WIN32_WINNT >= 0x0600.
    (...)

Are there plans on providing pre-built xpack gcc with the win32 threading model?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions