diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-02-18 08:36:26 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-04 13:36:10 +0100 |
commit | 03b900d3ed120ea919ea3eded7edbece3488cff3 (patch) | |
tree | 182781fc14fe15fd67caeb80e46f1c58495839c2 /cpukit/score/src/threadtimeout.c | |
parent | score: Distribute clock tick to all online CPUs (diff) | |
download | rtems-03b900d3ed120ea919ea3eded7edbece3488cff3.tar.bz2 |
score: Replace watchdog handler implementation
Use a red-black tree instead of delta chains.
Close #2344.
Update #2554.
Update #2555.
Close #2606.
Diffstat (limited to 'cpukit/score/src/threadtimeout.c')
-rw-r--r-- | cpukit/score/src/threadtimeout.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 ); |