aboutsummaryrefslogtreecommitdiffstats
path: root/src/OrderedQueue.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-18 15:56:51 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-18 15:56:51 +0100
commit34cd833198b2edab8ebb537c1cf598c1e850c437 (patch)
tree0959e0d24ca0eca7782e0cb3a47a9e5da10b6407 /src/OrderedQueue.cpp
parentaf8c94ab9f27920031aa230d6bb7d412281e404f (diff)
downloadODR-SourceCompanion-34cd833198b2edab8ebb537c1cf598c1e850c437.tar.gz
ODR-SourceCompanion-34cd833198b2edab8ebb537c1cf598c1e850c437.tar.bz2
ODR-SourceCompanion-34cd833198b2edab8ebb537c1cf598c1e850c437.zip
Move superframe alignment after ordered queue
Diffstat (limited to 'src/OrderedQueue.cpp')
-rw-r--r--src/OrderedQueue.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OrderedQueue.cpp b/src/OrderedQueue.cpp
index 9e69d95..eb2cf97 100644
--- a/src/OrderedQueue.cpp
+++ b/src/OrderedQueue.cpp
@@ -73,7 +73,7 @@ bool OrderedQueue::availableData() const
return _stock.size() > 0;
}
-std::vector<uint8_t> OrderedQueue::pop(int32_t *retCount)
+std::vector<uint8_t> OrderedQueue::pop(int32_t *returnedIndex)
{
OrderedQueueData buf;
uint32_t gap = 0;
@@ -86,7 +86,7 @@ std::vector<uint8_t> OrderedQueue::pop(int32_t *retCount)
buf = move(_stock.at(nextIndex));
_stock.erase(nextIndex);
_lastIndexPop = nextIndex;
- if (retCount) *retCount = _lastIndexPop;
+ if (returnedIndex) *returnedIndex = _lastIndexPop;
found = true;
}
catch (const std::out_of_range&) {