esrf changes: slsReceiver: extend CircularFifo to support blocking/non-blocking transfers:

* Add blocking push (for performance) and non-blocking pop (for symmetry), default to blocking operations
* Fix memory fault if Fifo allocation fails
* Fix fifoFree initialisation to fifoSize elements (was fifoSize - 1)
This commit is contained in:
2018-04-23 17:32:40 +02:00
parent 8f9c657fa0
commit d38108e527
3 changed files with 60 additions and 51 deletions

View File

@ -686,7 +686,7 @@ int UDPStandardImplementation::SetupFifoStructure() {
}
FILE_LOG(logINFO) << "Memory Allocated Per Fifo: " << ( ((generalData->imageSize) * numberofJobs + (generalData->fifoBufferHeaderSize)) * fifoDepth) << " bytes" ;
FILE_LOG(logINFO) << " Fifo structure(s) reconstructed: " << numThreads;
FILE_LOG(logINFO) << numThreads << " Fifo structure(s) reconstructed";
return OK;
}