summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-03-08 03:47:34 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-03-08 03:47:34 +0000
commit5cdcbd22d1389fa88e7d6f3a2ef27e3b0b47da1d (patch)
tree1c7125080fcb9638d8854df82de40bae411e89db
parentModifications to make go32 build using new i386-go32-rtems toolset (diff)
downloadrtems-5cdcbd22d1389fa88e7d6f3a2ef27e3b0b47da1d.tar.bz2
Added commit to indicate exepcted _Thread_Dispatch_disable_level. Hopefully
no one will ever get confused here again and try to enable dispatching. :(
-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;