diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-22 21:29:21 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-23 08:55:43 +0200 |
commit | 9f10911d2b653859f7199eaed5a85a24803711dc (patch) | |
tree | 3dcee8b9f5ad179e8a82b852c7ad5837d30abbb0 /cpukit/score/include/rtems/score/coresemimpl.h | |
parent | score: Fix priority message queue insert (diff) | |
download | rtems-9f10911d2b653859f7199eaed5a85a24803711dc.tar.bz2 |
score: Delete Thread_queue_Control::state
Use a parameter for _Thread_queue_Enqueue() instead to reduce memory
usage.
Diffstat (limited to 'cpukit/score/include/rtems/score/coresemimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/coresemimpl.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/coresemimpl.h b/cpukit/score/include/rtems/score/coresemimpl.h index 99303d7aa3..6a3a212f34 100644 --- a/cpukit/score/include/rtems/score/coresemimpl.h +++ b/cpukit/score/include/rtems/score/coresemimpl.h @@ -22,6 +22,7 @@ #include <rtems/score/coresem.h> #include <rtems/score/threaddispatch.h> #include <rtems/score/threadqimpl.h> +#include <rtems/score/statesimpl.h> #ifdef __cplusplus extern "C" { @@ -238,7 +239,12 @@ RTEMS_INLINE_ROUTINE void _CORE_semaphore_Seize_isr_disable( executing->Wait.id = id; _ISR_lock_ISR_enable( lock_context ); - _Thread_queue_Enqueue( &the_semaphore->Wait_queue, executing, timeout ); + _Thread_queue_Enqueue( + &the_semaphore->Wait_queue, + executing, + STATES_WAITING_FOR_SEMAPHORE, + timeout + ); _Thread_Enable_dispatch(); } |