summaryrefslogtreecommitdiffstats
path: root/src/doxygen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-08-05 20:11:31 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-08-05 20:11:31 (GMT)
commit45431b45fa0591a6de6b47c3fe9ff8dd0032aa4e (patch)
tree3144a00c2f4b8d50fd4321c9f1b7475090fe9f0c /src/doxygen.cpp
parenta501c61d6424b6a17fdaf2991df7c3a80f2ddf09 (diff)
downloadDoxygen-45431b45fa0591a6de6b47c3fe9ff8dd0032aa4e.zip
Doxygen-45431b45fa0591a6de6b47c3fe9ff8dd0032aa4e.tar.gz
Doxygen-45431b45fa0591a6de6b47c3fe9ff8dd0032aa4e.tar.bz2
Implemented workaround for Visual Studio bug in std::packaged_task
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r--src/doxygen.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 0ee908a..776caca 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -9143,8 +9143,9 @@ static void parseFilesMultiThreading(const std::shared_ptr<Entry> &root)
numThreads = std::thread::hardware_concurrency();
}
msg("Processing input using %lu threads.\n",numThreads);
- ThreadPool threadPool(numThreads);
- std::vector< std::future< std::vector< std::shared_ptr<Entry> > > > results;
+ using FutureType = std::vector< std::shared_ptr<Entry> >;
+ ThreadPool<FutureType> threadPool(numThreads);
+ std::vector< std::future< FutureType > > results;
for (const auto &s : g_inputFiles)
{
bool ambig;
@@ -9237,8 +9238,9 @@ static void parseFilesMultiThreading(const std::shared_ptr<Entry> &root)
{
std::size_t numThreads = std::thread::hardware_concurrency();
msg("Processing input using %lu threads.\n",numThreads);
- ThreadPool threadPool(numThreads);
- std::vector< std::future< std::shared_ptr<Entry> > > results;
+ using FutureType = std::shared_ptr<Entry>;
+ ThreadPool< FutureType > threadPool(numThreads);
+ std::vector< std::future< FutureType > > results;
for (const auto &s : g_inputFiles)
{
// lambda representing the work to executed by a thread