Skip to content

Commit 09919cb

Browse files
Tsung-Wei HuangTsung-Wei Huang
authored andcommitted
updated parallel_for
1 parent f7b875c commit 09919cb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

example/parallel_for.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void openmp(int N) {
4949

5050
auto tbeg = std::chrono::steady_clock::now();
5151
#pragma omp parallel for
52-
for(size_t i=0; i<N; ++i) {
52+
for(int i=0; i<N; ++i) {
5353
printf("fib[%d]=%d\n", range[i], fib(range[i]));
5454
}
5555
auto tend = std::chrono::steady_clock::now();

taskflow.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ inline void Threadpool::shutdown() {
300300
}
301301

302302
for(size_t i=0; i<_threads.size(); ++i) {
303-
async([](){}, Signal::SHUTDOWN);
303+
silent_async([](){}, Signal::SHUTDOWN);
304304
}
305305

306306
for(auto& t : _threads) {

0 commit comments

Comments
 (0)