hardStudy question · answer published in RTOS interview questions, so no pointsrtoszephyrsynchronisation
Using a Zephyr condition variable
Which pattern is correct for waiting on a Zephyr k_condvar?
k_mutex_lock(&m, K_FOREVER);
while (!ready) {
k_condvar_wait(&cv, &m, K_FOREVER);
}
use_data();
k_mutex_unlock(&m);Discussion 0
Join free to post in the discussion.
Related questions
- Delaying inside an RTOS taskEmbedded Systems Engineer
- Mutex compared with semaphoreEmbedded Systems Engineer
- Waiting inside an RTOS taskEmbedded Systems Engineer
- What real-time really meansEmbedded Systems Engineer
- Hard versus soft deadlinesEmbedded Systems Engineer
- FreeRTOS task waiting on a queueEmbedded Systems Engineer
- Which task the scheduler runsEmbedded Systems Engineer
- Two tasks at the same priorityEmbedded Systems Engineer