vQueueUnregisterQueue
[Queue Management]

queue.h
void vQueueUnregisterQueue( xQueueHandle xQueue, );

Removes a queue from the queue registry.

Parameters:
xQueue The handle of the queue being removed from the registry.
The queue registry has two purposes, both of which are associated with kernel aware debugging:
  1. It allows a textual name to be associated with a queue for easy queue identification within a debugging GUI.
  2. It contains the information required by a debugger to locate each registered queue and semaphore.
The queue registry has no purpose unless you are using a kernel aware debugger.

configQUEUE_REGISTRY_SIZE defines the maximum number of queues and semaphores that can be registered. Only the queues and semaphores that you want to view using a kernel aware debugger need to be registered.

Example:

void vAFunction( void ) { xQueueHandle xQueue; /* Create a queue big enough to hold 10 chars. */ xQueue = xQueueCreate( 10, sizeof( portCHAR ) ); /* We want this queue to be viewable in a kernel aware debugger, so register it. */ vQueueAddToRegistry( xQueue, "AMeaningfulName" ); /* The queue gets used here. */ /* At some later time, the queue is going to be deleted, first remove it from the registry. */ vQueueUnregisterQueue( xQueue ); vQueueDelete( xQueue ); }





Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2012 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOS distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd..