From d7c388321ad2f250cb35f01dc4c8dda7489c3416 Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Thu, 21 Apr 2011 19:05:15 +0000 Subject: 2011-04-21 Jennifer Averett 0 ) + if ( _Thread_Dispatch_in_critical_section() ) return false; if ( _ISR_Nest_level > 0 ) diff --git a/cpukit/libcsupport/src/realloc.c b/cpukit/libcsupport/src/realloc.c index 3689f32e61..a21288e51c 100644 --- a/cpukit/libcsupport/src/realloc.c +++ b/cpukit/libcsupport/src/realloc.c @@ -35,7 +35,7 @@ void *realloc( */ if (_System_state_Is_up(_System_state_Get())) { - if (_Thread_Dispatch_disable_level > 0) + if (_Thread_Dispatch_in_critical_section()) return (void *) 0; if (_ISR_Nest_level > 0) -- cgit v1.2.3