this is the correct implementation
This commit is contained in:
parent
5f0a3f3baa
commit
df1d5e5005
@ -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
|
||||||
currentId++;
|
currentId = queueCounter++;
|
||||||
}
|
}
|
||||||
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