summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/objectclose.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-02-28 18:06:37 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-05 11:36:40 +0100
commit43e1573c1f02194a4fa754dfbff51862130742a5 (patch)
treefa7aed77417ebfc87cf9cb00c81c5a1533db7aa8 /cpukit/score/src/objectclose.c
parentscore: Thread dispatch dis/enable without Giant (diff)
downloadrtems-43e1573c1f02194a4fa754dfbff51862130742a5.tar.bz2
score: Add ISR lock to Objects_Control
This enables per-object SMP locks on SMP configurations and is the first step to support fine-grained locking. On uni-processor configuration there will be no overhead. The _Objects_Acquire() is intended to replace _Objects_Get_isr_disable(). Update #2273.
Diffstat (limited to 'cpukit/score/src/objectclose.c')
-rw-r--r--cpukit/score/src/objectclose.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/score/src/objectclose.c b/cpukit/score/src/objectclose.c
index 52eb10c60b..25c7aa1a36 100644
--- a/cpukit/score/src/objectclose.c
+++ b/cpukit/score/src/objectclose.c
@@ -28,4 +28,6 @@ void _Objects_Close(
_Objects_Invalidate_Id( information, the_object );
_Objects_Namespace_remove( information, the_object );
+
+ _ISR_lock_Destroy( &the_object->Lock );
}