From 84f5c0a91be7b1ce9c4f1fb1f7afba680d5451aa Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 4 Apr 2016 09:42:15 +0200 Subject: score: Use red-black tree for active global objects Use a red-black tree to lookup active global objects by identifier or name. Update #2555. --- cpukit/score/src/objectget.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpukit/score/src/objectget.c') diff --git a/cpukit/score/src/objectget.c b/cpukit/score/src/objectget.c index 89fc59d607..276c96094c 100644 --- a/cpukit/score/src/objectget.c +++ b/cpukit/score/src/objectget.c @@ -69,12 +69,12 @@ Objects_Control *_Objects_Get( * it may be global in a multiprocessing system. But it is clearly * invalid on a single processor system. */ - *location = OBJECTS_ERROR; #if defined(RTEMS_MULTIPROCESSING) - _Objects_MP_Is_remote( information, id, location, &the_object ); - return the_object; + *location = _Objects_MP_Is_remote( information, id ); #else - return NULL; + *location = OBJECTS_ERROR; #endif + + return NULL; } -- cgit v1.2.3