From 49cdf40afa1b67b1eedbec26b73c59f54dc882cd Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 12 Jun 2013 09:25:39 +0200 Subject: score: Add and use _Thread_Dispatch_is_enabled() Delete _Thread_Dispatch_in_critical_section() and _Thread_Is_dispatching_enabled(). --- cpukit/score/src/heapfree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/score/src/heapfree.c') diff --git a/cpukit/score/src/heapfree.c b/cpukit/score/src/heapfree.c index d53a54de77..30a84a08b4 100644 --- a/cpukit/score/src/heapfree.c +++ b/cpukit/score/src/heapfree.c @@ -87,7 +87,7 @@ * is the task stack of a thread that deletes itself. The thread dispatch * disable level is a way to detect this use case. */ - if ( !_Thread_Dispatch_in_critical_section() ) { + if ( _Thread_Dispatch_is_enabled() ) { Heap_Block *const next = block->Protection_begin.next_delayed_free_block; if ( next == NULL ) { _Heap_Protection_delay_block_free( heap, block ); -- cgit v1.2.3