From afcf16da2c1a6d0d3ef2624f59445fb9b575e95f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20H=C3=A4rer?= Date: Mon, 30 Dec 2024 15:12:25 +0100 Subject: [PATCH] [SampleReader] Use the global `ThreadPool` --- src/samplereader/SampleReader.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/samplereader/SampleReader.h b/src/samplereader/SampleReader.h index 680a04bb0..1d19b6b27 100644 --- a/src/samplereader/SampleReader.h +++ b/src/samplereader/SampleReader.h @@ -9,6 +9,7 @@ #pragma once #include "utils/CryptoUtils.h" +#include "utils/ThreadPool.h" #include @@ -96,7 +97,7 @@ class ATTR_DLL_LOCAL ISampleReader */ void ReadSampleAsync() { - m_readSampleAsyncState = std::async(std::launch::async, &ISampleReader::ReadSample, this); + m_readSampleAsyncState = GlobalThreadPool.Execute(&ISampleReader::ReadSample, this); } /*!