Skip to content

Commit

Permalink
Give queue set queues a unique type number. (FreeRTOS#1083)
Browse files Browse the repository at this point in the history
Discussed here: https://forums.freertos.org/t/tracing-improvements/20097

Changes the value of queueQUEUE_TYPE_SET to a unique value (5) to allow
tracers to differentiate between normal queues and queue sets.

Co-authored-by: Rahul Kar <[email protected]>
  • Loading branch information
schilkp and kar-rahul-aws authored Jun 6, 2024
1 parent 69e1b7c commit 5a08982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ typedef struct QueueDefinition * QueueSetMemberHandle_t;

/* For internal use only. These definitions *must* match those in queue.c. */
#define queueQUEUE_TYPE_BASE ( ( uint8_t ) 0U )
#define queueQUEUE_TYPE_SET ( ( uint8_t ) 0U )
#define queueQUEUE_TYPE_MUTEX ( ( uint8_t ) 1U )
#define queueQUEUE_TYPE_COUNTING_SEMAPHORE ( ( uint8_t ) 2U )
#define queueQUEUE_TYPE_BINARY_SEMAPHORE ( ( uint8_t ) 3U )
#define queueQUEUE_TYPE_RECURSIVE_MUTEX ( ( uint8_t ) 4U )
#define queueQUEUE_TYPE_SET ( ( uint8_t ) 5U )

/**
* queue. h
Expand Down

0 comments on commit 5a08982

Please sign in to comment.