Explorar el Código

fix lwp_request_thread_exit thread->error的负号问题

shaojinchun hace 4 años
padre
commit
7bb00602bf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      components/lwp/lwp_pid.c

+ 1 - 1
components/lwp/lwp_pid.c

@@ -924,7 +924,7 @@ void lwp_request_thread_exit(rt_thread_t thread_to_exit)
         }
         if ((thread->stat & RT_THREAD_SUSPEND_MASK) == RT_THREAD_SUSPEND_MASK)
         {
-            thread->error = RT_EINTR;
+            thread->error = -RT_EINTR;
             rt_hw_dsb();
             rt_thread_wakeup(thread);
         }