-
Notifications
You must be signed in to change notification settings - Fork 136
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
Question about the new definition std :: jthread #73
Comments
In short, [ In short: Mingw.thread should be sufficient for |
Thanks for info Summarizing. Is jthread and thread the same only for other languages? |
@Jamaika1 Generally speaking, check the license. In the case of the repository you linked, the license for that particular implementation is listed in the readme: "The code is licensed under a Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/)." That said, this is no longer relevant to the mingw-std-threads repository. If you are interested in asking questions about licensing, it is likely that you can find answers in another location, such as Stack Overflow. |
Generally. Then why all this jthread ad? |
Generally speaking, the goal would be to have a complete implementation of the C++ standard library. This applies to the libraries shipped with compilers (GCC, Clang, Visual Studio, etc.). It also applies to this repository, because this repository is intended to provide the thread implementation that is missing in MinGW and MinGW-w64. As of C++20, that list of libraries includes jthread. That said, the library you linked is the closest that I currently know of to a jthread library for earlier versions of C++. According to its license, it can be forked (copied) and adapted to work with C++11 and C++14, provided that the original author is credited and any changes are noted. |
How different is the std::thread from std::jthread?
Does it make sense to change definitions for c++20?
Is std::jthread only under c++20?
I was able to compile std::jthread under c++17. Is it compatible with mingw.thread?
https://github.com/josuttis/jthread
The text was updated successfully, but these errors were encountered: