PcloudStimBuff:start: check engine setup()s for error
This commit is contained in:
@@ -72,8 +72,20 @@ collationBuffer(
|
|||||||
void PcloudStimulusBuffer::start()
|
void PcloudStimulusBuffer::start()
|
||||||
{
|
{
|
||||||
// Call ioUringAssemblyEngine setup() as the first step
|
// Call ioUringAssemblyEngine setup() as the first step
|
||||||
ioUringAssemblyEngine.setup();
|
if (!ioUringAssemblyEngine.setup())
|
||||||
openClCollatingAndMeshingEngine.setup();
|
{
|
||||||
|
std::cout <<__func__ <<"Failed to setup() "
|
||||||
|
<<"IOUringAssemblyEngine.\n";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!openClCollatingAndMeshingEngine.setup())
|
||||||
|
{
|
||||||
|
std::cout <<__func__ <<"Failed to setup() "
|
||||||
|
<<"OClCollMeshEngine.\n";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Call base class start() as the final step
|
// Call base class start() as the final step
|
||||||
StimulusBuffer::start();
|
StimulusBuffer::start();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user