Build tool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

parallel.h 215B

12345678910111213141516
  1. #pragma once
  2. #include <functional>
  3. namespace parallel {
  4. struct ParallelContext {
  5. ~ParallelContext();
  6. };
  7. ParallelContext init(int num);
  8. void quit();
  9. void run(std::function<void(void)> func);
  10. int coreCount();
  11. }