Skip to content

Commit

Permalink
[SampleReader] Use the global ThreadPool
Browse files Browse the repository at this point in the history
  • Loading branch information
neo1973 committed Dec 30, 2024
1 parent 78980c7 commit afcf16d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/samplereader/SampleReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#pragma once

#include "utils/CryptoUtils.h"
#include "utils/ThreadPool.h"

#include <bento4/Ap4.h>

Expand Down Expand Up @@ -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);
}

/*!
Expand Down

0 comments on commit afcf16d

Please sign in to comment.