FreeRTOS - Design Patterns for RTOS
Examine the following worker task code snippet. What is the main issue that could cause incorrect processing?
void workerTask(void *params) {
int workItem;
while(1) {
xQueueReceive(workQueue, &workItem, 0);
printf("Processed %d\n", workItem);
}
}