Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How is this compared to mcfgthread? #90

Open
ghost opened this issue Oct 17, 2022 · 1 comment
Open

How is this compared to mcfgthread? #90

ghost opened this issue Oct 17, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 17, 2022

https://github.com/lhmouse/mcfgthread/

@nmcclatchey
Copy link
Contributor

That will depend on the aspects that you are comparing.

  • Performance should be fairly similar for all mutually-supported versions of Windows, though it will vary depending on number of threads, amount of contention, and the version of Windows for which you are compiling. (Note: I have not benchmarked this)
  • Compatibility is a bit different; mingw-std-thread supports versions of Windows that mcfgthread does not. In particular, mingw-std-threads supports Windows XP and Vista, while mcfgthread does not.
  • Ease of use varies; mingw-std-thread can be used simply by including the headers, while (as I recall) mcfgthread requires modifying the compiler. mingw-std-thread also does not require calling a specialized exit function (see mcfgthread's notes section in the readme).

In short, if you need XP or Vista compatibility, choose mingw-std-thread. If not, use whatever you think will minimize bugs (eg. forget to call __MCF_exit()) or maintenance when writing library code (eg. conditionally including the mingw.*.h headers based on whether Windows is the target).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant