Overwrite existing QueueRegistry entries when a handle is added multiple times. (#306)
Overwrite an existing entry for a given xQueue handle when vQueueAddToRegistry is called with an xQueue handle of a queue that is already in the QueueRegistry.
diff --git a/include/queue.h b/include/queue.h
index 37ad23c..89b5fb1 100644
--- a/include/queue.h
+++ b/include/queue.h
@@ -1491,6 +1491,10 @@
* does not effect the number of queues, semaphores and mutexes that can be
* created - just the number that the registry can hold.
*
+ * If vQueueAddToRegistry is called more than once with the same xQueue
+ * parameter, the registry will store the pcQueueName parameter from the
+ * most recent call to vQueueAddToRegistry.
+ *
* @param xQueue The handle of the queue being added to the registry. This
* is the handle returned by a call to xQueueCreate(). Semaphore and mutex
* handles can also be passed in here.