summaryrefslogtreecommitdiffstats
path: root/src/threadpool.h
Commit message (Collapse)AuthorAgeFilesLines
* Implement better solution for ThreadPool and std::packaged_taskDimitri van Heesch2020-08-061-49/+59
| | | | | | | | | | | | 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.
* Implemented workaround for Visual Studio bug in std::packaged_taskDimitri van Heesch2020-08-051-4/+13
|
* Added copyright header to threadpool.hDimitri van Heesch2020-05-311-0/+16
|
* Added experimental multi-thread input processing support.Dimitri van Heesch2020-05-311-0/+116
This is disabled by default. It can be enabled by setting MULTITHREADED_INPUT to 1 in doxygen.h. Still has many data races, so don't use for anything other than development!