Name various threads to ease debugging

This commit is contained in:
Emmanuel Gil Peyrot 2020-08-31 23:35:40 +02:00
parent 5428763559
commit e4b07d2f4d
4 changed files with 10 additions and 6 deletions

View File

@ -1414,7 +1414,7 @@ GPUEngineBase::GPUEngineBase()
if (CommonSettings.num_cores > 1)
{
_asyncClearTask = new Task;
_asyncClearTask->start(false);
_asyncClearTask->start(false, 0, "async clear");
}
else
{
@ -8717,7 +8717,7 @@ GPUSubsystem::GPUSubsystem()
if (CommonSettings.num_cores > 1)
{
_asyncEngineBufferSetupTask = new Task;
_asyncEngineBufferSetupTask->start(false);
_asyncEngineBufferSetupTask->start(false, 0, "setup gpu bufs");
}
else
{

View File

@ -188,7 +188,9 @@ void VideoFilter::__InstanceInit(size_t srcWidth, size_t srcHeight, VideoFilterT
__vfThread[i].param.filterFunction = NULL;
__vfThread[i].task = new Task;
__vfThread[i].task->start(false);
char name[16];
snprintf(name, 16, "video filter %d", i);
__vfThread[i].task->start(false, 0, name);
}
__vfFunc = _vfAttributes.filterFunction;

View File

@ -1802,7 +1802,9 @@ SoftRasterizerRenderer::SoftRasterizerRenderer()
// to help stabilize performance when running SoftRasterizer.
_task[i].start(false, 43);
#else
_task[i].start(false);
char name[16];
snprintf(name, 16, "rasterizer %d", i);
_task[i].start(false, 0, name);
#endif
}
}

View File

@ -3398,7 +3398,7 @@ bool AdhocCommInterface::Start(WifiHandler* currentWifiHandler)
#ifdef DESMUME_COCOA
this->_rxTask->start(false, 43);
#else
this->_rxTask->start(false);
this->_rxTask->start(false, 0, "wifi ad-hoc");
#endif
this->_isRXThreadRunning = true;
this->_rxTask->execute(&Adhoc_RXPacketGetOnThread, this);
@ -3672,7 +3672,7 @@ bool SoftAPCommInterface::Start(WifiHandler* currentWifiHandler)
#ifdef DESMUME_COCOA
this->_rxTask->start(false, 43);
#else
this->_rxTask->start(false);
this->_rxTask->start(false, 0, "wifi ap");
#endif
this->_isRXThreadRunning = true;
this->_rxTask->execute(&Infrastructure_RXPacketGetOnThread, this);