Mercurial > hg > orthanc-wsi
diff Applications/ApplicationToolbox.cpp @ 236:b0ee417b667a
migrating new definitions in namespace Orthanc to namespace OrthancWSI
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 23 Feb 2021 10:27:58 +0100 |
parents | 1e864138f0da |
children | 49f647ed1b4c |
line wrap: on
line diff
--- a/Applications/ApplicationToolbox.cpp Thu Jan 14 11:18:36 2021 +0100 +++ b/Applications/ApplicationToolbox.cpp Tue Feb 23 10:27:58 2021 +0100 @@ -80,7 +80,7 @@ } - static void PrintProgress(Orthanc::BagOfTasksProcessor::Handle* handle, + static void PrintProgress(BagOfTasksProcessor::Handle* handle, bool* done) { unsigned int previous = 0; @@ -99,7 +99,7 @@ } - void Execute(Orthanc::BagOfTasks& tasks, + void Execute(BagOfTasks& tasks, unsigned int threadsCount) { if (threadsCount > 1) @@ -107,8 +107,8 @@ // Submit the tasks to a newly-created processor LOG(WARNING) << "Running " << tasks.GetSize() << " tasks"; LOG(WARNING) << "Using " << threadsCount << " threads for the computation"; - Orthanc::BagOfTasksProcessor processor(threadsCount); - std::unique_ptr<Orthanc::BagOfTasksProcessor::Handle> handle(processor.Submit(tasks)); + BagOfTasksProcessor processor(threadsCount); + std::unique_ptr<BagOfTasksProcessor::Handle> handle(processor.Submit(tasks)); // Start a thread to display the progress bool done = false; @@ -145,7 +145,7 @@ // No multithreading while (!tasks.IsEmpty()) { - std::unique_ptr<Orthanc::ICommand> task(tasks.Pop()); + std::unique_ptr<ICommand> task(tasks.Pop()); if (task->Execute()) { unsigned int progress = static_cast<unsigned int>(100.0f *