summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/condinit.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-07-28 20:39:48 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-07-28 20:39:48 +0000
commitc838e2f437e92d76173d86402c74b73e847af88a (patch)
tree9f809fc793b19e2eeca2a856e96a2ac7e36a425b /cpukit/posix/src/condinit.c
parent2010-07-27 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff)
downloadrtems-c838e2f437e92d76173d86402c74b73e847af88a.tar.bz2
2010-07-28 Vinu Rajashekhar <vinutheraj@gmail.com>
* posix/src/condinit.c, posix/src/condwaitsupp.c, posix/src/psignalunblockthread.c: Clean up some signal interruption code.
Diffstat (limited to 'cpukit/posix/src/condinit.c')
-rw-r--r--cpukit/posix/src/condinit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cpukit/posix/src/condinit.c b/cpukit/posix/src/condinit.c
index 5e64efa7cd..8bdbe2be00 100644
--- a/cpukit/posix/src/condinit.c
+++ b/cpukit/posix/src/condinit.c
@@ -44,7 +44,6 @@ int pthread_cond_init(
/*
* Be careful about attributes when global!!!
*/
-
if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )
return EINVAL;
@@ -64,11 +63,10 @@ int pthread_cond_init(
the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;
-/* XXX some more initialization might need to go here */
_Thread_queue_Initialize(
&the_cond->Wait_queue,
THREAD_QUEUE_DISCIPLINE_FIFO,
- STATES_WAITING_FOR_CONDITION_VARIABLE,
+ STATES_WAITING_FOR_CONDITION_VARIABLE | STATES_INTERRUPTIBLE_BY_SIGNAL,
ETIMEDOUT
);