PCloudStimBuff: Add useful dbg msg for thread affinity rigour

This commit is contained in:
2025-11-04 00:56:46 -04:00
parent 2b3b318abe
commit ef9eef2bc3
@@ -32,6 +32,22 @@ formatDesc(formatDesc), stagingBuffer(
OpenClConstraints(), nDgramsPerStagingBufferFrame),
ioUringAssemblyEngine(*this)
{
std::cout << __func__ << ": Device's component thread is "
<< device->componentThread->name << std::endl;
#ifndef CONFIG_WORLD_USE_BODY_THREAD
if (smoHooksPtr->ComponentThread_getSelf()->id != ComponentThread::WORLD)
#else
if (smoHooksPtr->ComponentThread_getSelf()->id != ComponentThread::BODY)
#endif
{
std::string errMsg = std::string(__func__) +
": PcloudStimulusBuffer constructor called on non-world/body thread " +
smoHooksPtr->ComponentThread_getSelf()->name;
std::cout << errMsg << std::endl;
// throw std::runtime_error(errMsg);
}
}
void PcloudStimulusBuffer::start()