diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-08-06 09:34:22 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-08-06 09:34:22 (GMT) |
commit | 584a8b188a24aed8b0130cbc2d3b0ade774d1d07 (patch) | |
tree | b79a5e0f382292982776b2c25cb0e578f3b1e2d7 /examples/example_test.cpp | |
parent | 45431b45fa0591a6de6b47c3fe9ff8dd0032aa4e (diff) | |
download | Doxygen-584a8b188a24aed8b0130cbc2d3b0ade774d1d07.zip Doxygen-584a8b188a24aed8b0130cbc2d3b0ade774d1d07.tar.gz Doxygen-584a8b188a24aed8b0130cbc2d3b0ade774d1d07.tar.bz2 |
Implement better solution for ThreadPool and std::packaged_task
Careful analysis of the compilation problems with Visual Studio revealed
that moving a std::packaged_task<R()> into a std::packaged_task<void()>
is a bit controversal as to whether or not it is supposed to work at
all or if it triggers undefined behavior.
I've now implemented the second solution as suggested here:
https://stackoverflow.com/a/31078143/784672
This avoid such conversion altogether and make the Threadpool class more generic
again.
Diffstat (limited to 'examples/example_test.cpp')
0 files changed, 0 insertions, 0 deletions