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:
@@ -160,6 +160,7 @@ namespace AWSCore
|
||||
// If m_firstThreadCPU isn't -1, then each thread will be
|
||||
// assigned to a specific CPU starting with the specified CPU.
|
||||
AZ::JobManagerDesc jobManagerDesc{};
|
||||
jobManagerDesc.m_jobManagerName = "AWSCore JobManager";
|
||||
AZ::JobManagerThreadDesc threadDesc(m_firstThreadCPU, m_threadPriority, m_threadStackSize);
|
||||
for (int i = 0; i < m_threadCount; ++i)
|
||||
{
|
||||
|
||||
@@ -101,6 +101,8 @@ namespace ImageProcessingAtom
|
||||
void ImagePreview::InitializeJobSettings()
|
||||
{
|
||||
AZ::JobManagerDesc desc;
|
||||
desc.m_jobManagerName = "ImagePreview";
|
||||
|
||||
AZ::JobManagerThreadDesc threadDesc;
|
||||
desc.m_workerThreads.push_back(threadDesc);
|
||||
// Check to ensure these have not already been initialized.
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user