We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 65d4e73 + a78c6be commit 70142efCopy full SHA for 70142ef
src/ipc.c
@@ -690,7 +690,9 @@ rt_err_t rt_mutex_take(rt_mutex_t mutex, rt_int32_t time)
690
}
691
else
692
{
693
+#ifdef RT_USING_SIGNALS
694
__again:
695
+#endif /* end of RT_USING_SIGNALS */
696
/* The value of mutex is 1 in initial status. Therefore, if the
697
* value is great than 0, it indicates the mutex is avaible.
698
*/
@@ -759,8 +761,10 @@ rt_err_t rt_mutex_take(rt_mutex_t mutex, rt_int32_t time)
759
761
760
762
if (thread->error != RT_EOK)
763
764
765
/* interrupt by signal, try it again */
766
if (thread->error == -RT_EINTR) goto __again;
767
768
769
/* return error */
770
return thread->error;
0 commit comments