summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spobjgetnext
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-27 14:16:12 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-31 08:29:44 +0200
commit23fec9f0e18dc4913fab818118f836af150b98f3 (patch)
tree66228f23bbf654117a33e28db7a017eea21fb785 /testsuites/sptests/spobjgetnext
parentscore: Use thread life protection for API mutexes (diff)
downloadrtems-23fec9f0e18dc4913fab818118f836af150b98f3.tar.bz2
score: PR2152: Use allocator mutex for objects
Use allocator mutex for objects allocate/free. This prevents that the thread dispatch latency depends on the workspace/heap fragmentation.
Diffstat (limited to 'testsuites/sptests/spobjgetnext')
-rw-r--r--testsuites/sptests/spobjgetnext/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuites/sptests/spobjgetnext/init.c b/testsuites/sptests/spobjgetnext/init.c
index 9682c346fe..2695190239 100644
--- a/testsuites/sptests/spobjgetnext/init.c
+++ b/testsuites/sptests/spobjgetnext/init.c
@@ -108,7 +108,9 @@ rtems_task Init(
/* XXX try with a manager with no objects created */
puts( "Init - _Objects_Active_count" );
+ _Objects_Allocator_lock();
active_count = _Objects_Active_count( info );
+ _Objects_Allocator_unlock();
rtems_test_assert( active_count == 1 );
TEST_END();