summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/wkspace.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-24 15:57:29 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-24 16:00:26 +0100
commit2a713e3b944625c45154f0ea7f5703e918de758b (patch)
treec572bfa9e000f7e1fd815d2ab698ac27abf70e7d /cpukit/score/src/wkspace.c
parentlibcsupport: Use POSIX keys for GXX key functions (diff)
downloadrtems-2a713e3b944625c45154f0ea7f5703e918de758b.tar.bz2
score: _Heap_Protection_set_delayed_free_fraction
Add and use _Heap_Protection_set_delayed_free_fraction(). This makes it possible to avoid a dependency on _Thread_Dispatch_is_enabled().
Diffstat (limited to 'cpukit/score/src/wkspace.c')
-rw-r--r--cpukit/score/src/wkspace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/score/src/wkspace.c b/cpukit/score/src/wkspace.c
index a1460ff0fb..071c178758 100644
--- a/cpukit/score/src/wkspace.c
+++ b/cpukit/score/src/wkspace.c
@@ -123,6 +123,8 @@ void _Workspace_Handler_initialization(
INTERNAL_ERROR_TOO_LITTLE_WORKSPACE
);
}
+
+ _Heap_Protection_set_delayed_free_fraction( &_Workspace_Area, 1 );
}
void *_Workspace_Allocate(