forked from lix-project/lix
share the executor between multiple copy threads.
This commit is contained in:
parent
591e75cd01
commit
854c0860f4
|
@ -281,8 +281,8 @@ struct S3BinaryCacheStoreImpl : public S3BinaryCacheStore
|
|||
|
||||
auto maxThreads = std::thread::hardware_concurrency();
|
||||
|
||||
auto executor =
|
||||
std::make_shared<Aws::Utils::Threading::PooledThreadExecutor>(maxThreads);
|
||||
static std::shared_ptr<Aws::Utils::Threading::PooledThreadExecutor>
|
||||
executor = std::make_shared<Aws::Utils::Threading::PooledThreadExecutor>(maxThreads);
|
||||
|
||||
TransferManagerConfiguration transferConfig(executor.get());
|
||||
|
||||
|
|
Loading…
Reference in a new issue