Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Add multi-threading for C++ #2
Yes, and no.
1 thread : yes
You can achieve 'single thread mode' by the following change :
N threads : no
But for now there is no convenient and standard way to limit the maximum amount of threads.
You can achive the feature by thread pool or std::condition_variable, but I think it is too much complicated for this kind of simple project.