mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-09 11:30:43 +02:00
check should be before and after the push or pull
This commit is contained in:
parent
f78a7b201b
commit
03d9e1d182
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user