| 2723 | #if ( configQUEUE_REGISTRY_SIZE > 0 ) |
| 2724 | |
| 2725 | void vQueueAddToRegistry( QueueHandle_t xQueue, |
| 2726 | const char * pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ |
| 2727 | { |
| 2728 | UBaseType_t ux; |
| 2729 | |
| 2730 | configASSERT( xQueue ); |
| 2731 | configASSERT( pcQueueName ); |
| 2732 | |
| 2733 | /* See if there is an empty space in the registry. A NULL name denotes |
| 2734 | * a free slot. */ |
| 2735 | for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ ) |
| 2736 | { |
| 2737 | if( xQueueRegistry[ ux ].pcQueueName == NULL ) |
| 2738 | { |
| 2739 | /* Store the information on this queue. */ |
| 2740 | xQueueRegistry[ ux ].pcQueueName = pcQueueName; |
| 2741 | xQueueRegistry[ ux ].xHandle = xQueue; |
| 2742 | |
| 2743 | traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName ); |
| 2744 | break; |
| 2745 | } |
| 2746 | else |
| 2747 | { |
| 2748 | mtCOVERAGE_TEST_MARKER(); |
| 2749 | } |
| 2750 | } |
| 2751 | } |
| 2752 | |
| 2753 | #endif /* configQUEUE_REGISTRY_SIZE */ |
| 2754 | /*-----------------------------------------------------------*/ |
no outgoing calls
no test coverage detected