mcfgthread

Cornerstone of the MOST efficient std::thread on Windows for mingw-w64

Latest version: 2.1.1

Add to xmake.lua

add_requires("mcfgthread 2.1.1")

Learn how to add and link packages with Xmake →

Information

License
GPL-3.0
Recipe updated
2025-05-11T01:36:44.000Z

Platforms

  • msys: i386, x86_64
  • mingw: i386, x86_64, arm, arm64
  • windows: x86, x64, arm, arm64, arm64ec

Options

debug_checks
enable run-time assertions · Type: boolean · Default: false

Versions

  • 1.8.4
  • 1.9.1
  • 2.1.1

Dependencies

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "mcfgthread 2.1.1"

show info

xrepo info "mcfgthread"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("mcfgthread 2.1.1")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("mcfgthread")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "mcfgthread 2.1.1" shell