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.
1 parent e6b7215 commit a78c6beCopy full SHA for a78c6be
src/ipc.c
@@ -685,7 +685,9 @@ rt_err_t rt_mutex_take(rt_mutex_t mutex, rt_int32_t time)
685
}
686
else
687
{
688
+#ifdef RT_USING_SIGNALS
689
__again:
690
+#endif /* end of RT_USING_SIGNALS */
691
/* The value of mutex is 1 in initial status. Therefore, if the
692
* value is great than 0, it indicates the mutex is avaible.
693
*/
@@ -754,8 +756,10 @@ rt_err_t rt_mutex_take(rt_mutex_t mutex, rt_int32_t time)
754
756
755
757
if (thread->error != RT_EOK)
758
759
760
/* interrupt by signal, try it again */
761
if (thread->error == -RT_EINTR) goto __again;
762
763
764
/* return error */
765
return thread->error;
0 commit comments