Skip to content
RED SAG Skills
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);
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions