PcloudStimBuff:start: check engine setup()s for error
This commit is contained in:
@@ -72,8 +72,20 @@ collationBuffer(
|
||||
void PcloudStimulusBuffer::start()
|
||||
{
|
||||
// Call ioUringAssemblyEngine setup() as the first step
|
||||
ioUringAssemblyEngine.setup();
|
||||
openClCollatingAndMeshingEngine.setup();
|
||||
if (!ioUringAssemblyEngine.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
|
||||
StimulusBuffer::start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user