using current ID
This commit is contained in:
parent
f6d1b8981c
commit
5f0a3f3baa
@ -20,7 +20,7 @@ ReturnValue_t QueueMapManager::addMessageQueue(QueueHandle_t queue, MessageQueue
|
|||||||
uint32_t currentId = queueCounter++;
|
uint32_t currentId = queueCounter++;
|
||||||
if(currentId == MessageQueueIF::NO_QUEUE) {
|
if(currentId == MessageQueueIF::NO_QUEUE) {
|
||||||
// Skip the NO_QUEUE value
|
// Skip the NO_QUEUE value
|
||||||
queueCounter++;
|
currentId++;
|
||||||
}
|
}
|
||||||
auto returnPair = queueMap.emplace(currentId, queue);
|
auto returnPair = queueMap.emplace(currentId, queue);
|
||||||
if(not returnPair.second) {
|
if(not returnPair.second) {
|
||||||
|
Loading…
Reference in New Issue
Block a user