From 763a41619a2ade83e6b13f6e22782cbad9654a86 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Sun, 23 Mar 2008 16:07:48 +0000 Subject: [PATCH] Allow test to pass when there are many other tasks in the system. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@256 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Demo/Common/Minimal/recmutex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Demo/Common/Minimal/recmutex.c b/Demo/Common/Minimal/recmutex.c index c11dfa8ca..f0fd9663e 100644 --- a/Demo/Common/Minimal/recmutex.c +++ b/Demo/Common/Minimal/recmutex.c @@ -95,7 +95,7 @@ /* Misc. */ #define recmuSHORT_DELAY ( 20 / portTICK_RATE_MS ) #define recmuNO_DELAY ( ( portTickType ) 0 ) -#define recmuONE_TICK_DELAY ( ( portTickType ) 1 ) +#define recmuTWO_TICK_DELAY ( ( portTickType ) 2 ) /* The three tasks as described at the top of this file. */ static void prvRecursiveMutexControllingTask( void *pvParameters ); @@ -150,7 +150,7 @@ unsigned portBASE_TYPE ux; inherit our priority on all but the first cycle of this task. If we did not block attempting to receive the mutex then no priority inheritance would occur. */ - if( xSemaphoreTakeRecursive( xMutex, recmuONE_TICK_DELAY ) != pdPASS ) + if( xSemaphoreTakeRecursive( xMutex, recmuTWO_TICK_DELAY ) != pdPASS ) { xErrorOccurred = pdTRUE; } @@ -176,7 +176,7 @@ unsigned portBASE_TYPE ux; } /* Having given it back the same number of times as it was taken, we - should no longer be the mutex owner, so the next give should fail. */ + should no longer be the mutex owner, so the next give sh ould fail. */ if( xSemaphoreGiveRecursive( xMutex ) == pdPASS ) { xErrorOccurred = pdTRUE; -- 2.39.5