FreeRTOS - Design Patterns for RTOS
Given this code snippet, what will be the output if the queue is empty and workerTask blocks on xQueueReceive?
void workerTask(void *params) {
int workItem;
while(1) {
if(xQueueReceive(workQueue, &workItem, portMAX_DELAY) == pdPASS) {
printf("Processed %d\n", workItem);
}
}
}