Add a name to JobManager (#5576)

* Add a name to JobManager, all worker threads use that name to label their threads

Signed-off-by: rgba16f <82187279+rgba16f@users.noreply.github.com>

* update with PR feedback, changed to use AZStd::fixed_string::format

Signed-off-by: rgba16f <82187279+rgba16f@users.noreply.github.com>

* Fix copy paste errors using local variable names

Signed-off-by: rgba16f <82187279+rgba16f@users.noreply.github.com>
This commit is contained in:
rgba16f
2021-11-12 13:15:41 -06:00
committed by GitHub
parent cb93bafc4f
commit 57adfd795e
8 changed files with 19 additions and 4 deletions
@@ -123,6 +123,8 @@ namespace AZ
// Prepare to create a cancellable job.
AZ::JobManagerDesc desc;
desc.m_jobManagerName = "AssetCollectionAsyncLoader";
AZ::JobManagerThreadDesc threadDesc;
desc.m_workerThreads.push_back(threadDesc);
m_jobManager = AZStd::make_unique<AZ::JobManager>(desc);