Merge "Add std::this_thread::yield to Burst NN polling loop"
This commit is contained in:
commit
6aab5a161e
1 changed files with 4 additions and 0 deletions
|
@ -520,6 +520,8 @@ nn::Result<std::vector<FmqRequestDatum>> RequestChannelReceiver::getPacketBlocki
|
|||
}
|
||||
return packet;
|
||||
}
|
||||
|
||||
std::this_thread::yield();
|
||||
}
|
||||
|
||||
// If we get to this point, we either stopped polling because it was taking too long or polling
|
||||
|
@ -665,6 +667,8 @@ nn::Result<std::vector<FmqResultDatum>> ResultChannelReceiver::getPacketBlocking
|
|||
}
|
||||
return packet;
|
||||
}
|
||||
|
||||
std::this_thread::yield();
|
||||
}
|
||||
|
||||
// If we get to this point, we either stopped polling because it was taking too long or polling
|
||||
|
|
Loading…
Reference in a new issue