mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-17 07:17:13 +02:00
check of fifo level before trying to push in successfully
This commit is contained in:
@ -104,10 +104,10 @@ void Fifo::GetNewAddress(char*& address) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Fifo::PushAddress(char*& address) {
|
void Fifo::PushAddress(char*& address) {
|
||||||
while(!fifoBound->push(address));
|
|
||||||
int temp = fifoBound->getSemValue();
|
int temp = fifoBound->getSemValue();
|
||||||
if (temp > status_fifoBound)
|
if (temp > status_fifoBound)
|
||||||
status_fifoBound = temp;
|
status_fifoBound = temp;
|
||||||
|
while(!fifoBound->push(address));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Fifo::PopAddress(char*& address) {
|
void Fifo::PopAddress(char*& address) {
|
||||||
|
Reference in New Issue
Block a user