summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/exec/posix/src/cond.c4
-rw-r--r--cpukit/posix/src/cond.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/c/src/exec/posix/src/cond.c b/c/src/exec/posix/src/cond.c
index c480422f19..de2e252b95 100644
--- a/c/src/exec/posix/src/cond.c
+++ b/c/src/exec/posix/src/cond.c
@@ -426,6 +426,10 @@ int _POSIX_Condition_variables_Wait_support(
else
status = ETIMEDOUT;
+ /*
+ * When we get here the dispatch disable level is 0.
+ */
+
mutex_status = pthread_mutex_lock( mutex );
if ( mutex_status )
return EINVAL;
diff --git a/cpukit/posix/src/cond.c b/cpukit/posix/src/cond.c
index c480422f19..de2e252b95 100644
--- a/cpukit/posix/src/cond.c
+++ b/cpukit/posix/src/cond.c
@@ -426,6 +426,10 @@ int _POSIX_Condition_variables_Wait_support(
else
status = ETIMEDOUT;
+ /*
+ * When we get here the dispatch disable level is 0.
+ */
+
mutex_status = pthread_mutex_lock( mutex );
if ( mutex_status )
return EINVAL;