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/posix/src/condwaitsupp.c | |
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/posix/src/condwaitsupp.c')
-rw-r--r-- | cpukit/posix/src/condwaitsupp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/posix/src/condwaitsupp.c b/cpukit/posix/src/condwaitsupp.c index 2a0b57f405..1abdc426fc 100644 --- a/cpukit/posix/src/condwaitsupp.c +++ b/cpukit/posix/src/condwaitsupp.c @@ -23,6 +23,7 @@ #include <rtems/system.h> #include <rtems/score/watchdog.h> +#include <rtems/score/statesimpl.h> #include <rtems/posix/condimpl.h> #include <rtems/posix/time.h> #include <rtems/posix/muteximpl.h> @@ -79,7 +80,13 @@ int _POSIX_Condition_variables_Wait_support( executing->Wait.queue = &the_cond->Wait_queue; executing->Wait.id = *cond; - _Thread_queue_Enqueue( &the_cond->Wait_queue, executing, timeout ); + _Thread_queue_Enqueue( + &the_cond->Wait_queue, + executing, + STATES_WAITING_FOR_CONDITION_VARIABLE + | STATES_INTERRUPTIBLE_BY_SIGNAL, + timeout + ); _Objects_Put( &the_cond->Object ); |