mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-18 02:58:57 +08:00
fix pthread cond wait scheduling
This commit is contained in:
@@ -434,6 +434,7 @@ rt_err_t _pthread_cond_timedwait(pthread_cond_t *cond,
|
||||
|
||||
/* exit critical and do schedule */
|
||||
rt_exit_critical();
|
||||
rt_schedule();
|
||||
|
||||
result = thread->error;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user