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:
@@ -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)
|
||||||
|
|||||||
+6
-6
@@ -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,10 +142,10 @@ public:
|
|||||||
loop(i);
|
loop(i);
|
||||||
blocks_running--;
|
blocks_running--;
|
||||||
});
|
});
|
||||||
while (blocks_running != 0)
|
}
|
||||||
{
|
while (blocks_running != 0)
|
||||||
sleep_or_yield();
|
{
|
||||||
}
|
sleep_or_yield();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user