In this project, many codes' performances have been improved via multi-threading. These codes are similar in a sense that they call 'std::thread::hardware_concurrency()' to get the number of threads and calculate chunk size, start_offset, end_offset, and so on.
In order to reduce the code duplication on this project, a macro of function is needed.
In this project, many codes' performances have been improved via multi-threading. These codes are similar in a sense that they call 'std::thread::hardware_concurrency()' to get the number of threads and calculate chunk size, start_offset, end_offset, and so on.
In order to reduce the code duplication on this project, a macro of function is needed.