share the executor between multiple copy threads.

This commit is contained in:
AmineChikhaoui 2018-05-07 15:07:00 +01:00
parent 591e75cd01
commit 854c0860f4
No known key found for this signature in database
GPG key ID: C0C8C84C15BCCD1C

View file

@ -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());