]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/queue.c
Allow mutex type semaphores to be given from an interrupt (not a normal thing to...
[freertos] / FreeRTOS / Source / queue.c
index 4748860db8a03d8464852aa257074a295a5d1a30..090028d32caf0454fe9390b7e5feafa527b9fc07 100644 (file)
@@ -874,7 +874,9 @@ xTimeOutType xTimeOut;
                                                        if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )\r
                                                        {\r
                                                                portENTER_CRITICAL();\r
+                                                               {\r
                                                                        vTaskPriorityInherit( ( void * ) pxQueue->pxMutexHolder );\r
+                                                               }\r
                                                                portEXIT_CRITICAL();\r
                                                        }\r
                                                }\r