mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-17 07:05:31 +08:00
fix pthread cond wait scheduling
This commit is contained in:
1 parent
b118fcab2e
commit
0c25ffa18e
1 file changed
+1
@@ -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