From 03b900d3ed120ea919ea3eded7edbece3488cff3 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 18 Feb 2016 08:36:26 +0100 Subject: score: Replace watchdog handler implementation Use a red-black tree instead of delta chains. Close #2344. Update #2554. Update #2555. Close #2606. --- cpukit/score/src/threadtimeout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/score/src/threadtimeout.c') diff --git a/cpukit/score/src/threadtimeout.c b/cpukit/score/src/threadtimeout.c index 8ecaebde06..59f6bd97f0 100644 --- a/cpukit/score/src/threadtimeout.c +++ b/cpukit/score/src/threadtimeout.c @@ -33,7 +33,7 @@ static void _Thread_Do_timeout( Thread_Control *the_thread ) _Thread_Lock_restore_default( the_thread ); } -void _Thread_Timeout( Objects_Id id, void *arg ) +void _Thread_Timeout( Watchdog_Control *watchdog ) { Thread_Control *the_thread; void *thread_lock; @@ -41,7 +41,7 @@ void _Thread_Timeout( Objects_Id id, void *arg ) Thread_Wait_flags wait_flags; bool unblock; - the_thread = arg; + the_thread = RTEMS_CONTAINER_OF( watchdog, Thread_Control, Timer.Watchdog ); thread_lock = _Thread_Lock_acquire( the_thread, &lock_context ); wait_flags = _Thread_Wait_flags_get( the_thread ); -- cgit v1.2.3