Tweaks PAPB polling #533
@ -76,7 +76,8 @@ ReturnValue_t PapbVcInterface::pollPapbBusySignal(uint32_t maxPollRetries) const
|
||||
return PAPB_BUSY;
|
||||
}
|
||||
|
||||
nanosleep(&nextDelay, const_cast<struct timespec*>(&remDelay));
|
||||
// Ignore signal handling here for now.
|
||||
nanosleep(&nextDelay, &remDelay);
|
||||
if (nextDelay.tv_nsec * 2 <= MAX_DELAY_PAPB_POLLING_NS) {
|
||||
nextDelay.tv_nsec *= 2;
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ class PapbVcInterface : public VirtualChannelIF {
|
||||
|
||||
std::string uioFile;
|
||||
int mapNum = 0;
|
||||
struct timespec remDelay;
|
||||
mutable struct timespec remDelay;
|
||||
|
||||
volatile uint32_t* vcBaseReg = nullptr;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user