mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-16 21:26:50 +01:00
check should be before and after the push or pull
This commit is contained in:
@@ -108,6 +108,9 @@ void Fifo::GetNewAddress(char*& address) {
|
|||||||
if (temp < status_fifoFree)
|
if (temp < status_fifoFree)
|
||||||
status_fifoFree = temp;
|
status_fifoFree = temp;
|
||||||
fifoFree->pop(address);
|
fifoFree->pop(address);
|
||||||
|
temp = fifoFree->getSemValue();
|
||||||
|
if (temp < status_fifoFree)
|
||||||
|
status_fifoFree = temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Fifo::PushAddress(char*& address) {
|
void Fifo::PushAddress(char*& address) {
|
||||||
@@ -115,6 +118,9 @@ void Fifo::PushAddress(char*& address) {
|
|||||||
if (temp > status_fifoBound)
|
if (temp > status_fifoBound)
|
||||||
status_fifoBound = temp;
|
status_fifoBound = temp;
|
||||||
while(!fifoBound->push(address));
|
while(!fifoBound->push(address));
|
||||||
|
temp = fifoBound->getSemValue();
|
||||||
|
if (temp > status_fifoBound)
|
||||||
|
status_fifoBound = temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Fifo::PopAddress(char*& address) {
|
void Fifo::PopAddress(char*& address) {
|
||||||
|
|||||||
Reference in New Issue
Block a user