1
0
mirror of https://github.com/bshoshany/thread-pool.git synced 2026-07-21 19:13:00 +04:00

Updated to v1.7

This commit is contained in:
Barak Shoshany
2021-06-02 10:38:24 -04:00
committed by GitHub
parent bc66b8a222
commit 910f7cd95b
2 changed files with 8 additions and 6 deletions
+2
View File
@@ -701,6 +701,8 @@ An interesting point to notice is that for **single-threaded** calculations (1 b
<a id="markdown-version-history" name="version-history"></a> <a id="markdown-version-history" name="version-history"></a>
## Version history ## Version history
* Version 1.7 (2021-06-02)
* Fixed a bug in `parallelize_loop()` which prevented it from actually running loops in parallel, see [this issue](https://github.com/bshoshany/thread-pool/issues/11).
* Version 1.6 (2021-05-26) * Version 1.6 (2021-05-26)
* Since MSVC does not interpret `and` as `&&` by default, the previous release did not compile with MSVC unless the `/permissive-` or `/Za` compiler flags were used. This has been fixed in this version, and the code now successfully compiles with GCC, Clang, and MSVC. See [this pull request](https://github.com/bshoshany/thread-pool/pull/10). * Since MSVC does not interpret `and` as `&&` by default, the previous release did not compile with MSVC unless the `/permissive-` or `/Za` compiler flags were used. This has been fixed in this version, and the code now successfully compiles with GCC, Clang, and MSVC. See [this pull request](https://github.com/bshoshany/thread-pool/pull/10).
* Version 1.5 (2021-05-07) * Version 1.5 (2021-05-07)
+3 -3
View File
@@ -3,8 +3,8 @@
/** /**
* @file thread_pool.hpp * @file thread_pool.hpp
* @author Barak Shoshany (baraksh@gmail.com) (http://baraksh.com) * @author Barak Shoshany (baraksh@gmail.com) (http://baraksh.com)
* @version 1.6 * @version 1.7
* @date 2021-05-26 * @date 2021-06-02
* @copyright Copyright (c) 2021 Barak Shoshany. Licensed under the MIT license. If you use this library in published research, please cite it as follows: * @copyright Copyright (c) 2021 Barak Shoshany. Licensed under the MIT license. If you use this library in published research, please cite it as follows:
* - Barak Shoshany, "A C++17 Thread Pool for High-Performance Scientific Computing", doi:10.5281/zenodo.4742687, arXiv:2105.00613 (May 2021) * - Barak Shoshany, "A C++17 Thread Pool for High-Performance Scientific Computing", doi:10.5281/zenodo.4742687, arXiv:2105.00613 (May 2021)
* *
@@ -142,12 +142,12 @@ public:
loop(i); loop(i);
blocks_running--; blocks_running--;
}); });
}
while (blocks_running != 0) while (blocks_running != 0)
{ {
sleep_or_yield(); sleep_or_yield();
} }
} }
}
/** /**
* @brief Push a function with no arguments or return value into the task queue. * @brief Push a function with no arguments or return value into the task queue.