mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Execution policy (multithreading)
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
#include "pdfutils.h"
|
||||
#include "pdfpattern.h"
|
||||
#include "pdfcms.h"
|
||||
#include "pdfexecutionpolicy.h"
|
||||
|
||||
#include <QCryptographicHash>
|
||||
|
||||
@ -222,7 +223,7 @@ QImage PDFAbstractColorSpace::getImage(const PDFImageData& imageData,
|
||||
};
|
||||
|
||||
auto range = PDFIntegerRange<unsigned int>(0, imageHeight);
|
||||
std::for_each(std::execution::parallel_policy(), range.begin(), range.end(), transformPixelLine);
|
||||
PDFExecutionPolicy::execute(PDFExecutionPolicy::Scope::Content, range.begin(), range.end(), transformPixelLine);
|
||||
|
||||
if (exception)
|
||||
{
|
||||
|
Reference in New Issue
Block a user