mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-09 03:20:42 +02:00
performance optimization in fifodepth, ensure memory is allocated by writing something in the beginning
This commit is contained in:
parent
53e5a097ab
commit
ab6f448e1f
@ -56,7 +56,7 @@ void Fifo::CreateFifos(uint32_t fifoItemSize) {
|
||||
{ //push free addresses into fifoFree fifo
|
||||
char* buffer = memory;
|
||||
for (int i = 0; i < fifoDepth; ++i) {
|
||||
//sprintf(buffer,"memory");
|
||||
strcpy(buffer, "memory"); //ensures the memory is allocated
|
||||
FreeAddress(buffer);
|
||||
buffer += fifoItemSize;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user