PCloudStimBuff: Add useful dbg msg for thread affinity rigour
This commit is contained in:
@@ -32,6 +32,22 @@ formatDesc(formatDesc), stagingBuffer(
|
|||||||
OpenClConstraints(), nDgramsPerStagingBufferFrame),
|
OpenClConstraints(), nDgramsPerStagingBufferFrame),
|
||||||
ioUringAssemblyEngine(*this)
|
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()
|
void PcloudStimulusBuffer::start()
|
||||||
|
|||||||
Reference in New Issue
Block a user