From 5eaf0e7458bac80ba669f03c4feaae5bad55c6c9 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 17 Mar 2016 07:56:31 +0100 Subject: posix: Use per-thread lookup tree for POSIX Keys Yields higher performance on SMP systems. Close #2625. --- cpukit/score/src/threadinitialize.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cpukit/score/src/threadinitialize.c') diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index 0b5fd3a125..bcf03bf833 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -210,10 +210,9 @@ bool _Thread_Initialize( _Scheduler_Update_priority( the_thread, priority ); - /* - * initialize thread's key vaule node chain - */ - _Chain_Initialize_empty( &the_thread->Key_Chain ); + /* POSIX Keys */ + _RBTree_Initialize_empty( &the_thread->Keys.Key_value_pairs ); + _ISR_lock_Initialize( &the_thread->Keys.Lock, "POSIX Key Value Pairs" ); _Thread_Action_control_initialize( &the_thread->Post_switch_actions ); -- cgit v1.2.3