diff options
-rw-r--r-- | c/src/exec/posix/src/cond.c | 5 | ||||
-rw-r--r-- | cpukit/posix/src/cond.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/c/src/exec/posix/src/cond.c b/c/src/exec/posix/src/cond.c index de2e252b95..248f836b94 100644 --- a/c/src/exec/posix/src/cond.c +++ b/c/src/exec/posix/src/cond.c @@ -422,9 +422,10 @@ int _POSIX_Condition_variables_Wait_support( if ( status && status != ETIMEDOUT ) return status; - } - else + } else { + _Thread_Enable_dispatch(); status = ETIMEDOUT; + } /* * When we get here the dispatch disable level is 0. diff --git a/cpukit/posix/src/cond.c b/cpukit/posix/src/cond.c index de2e252b95..248f836b94 100644 --- a/cpukit/posix/src/cond.c +++ b/cpukit/posix/src/cond.c @@ -422,9 +422,10 @@ int _POSIX_Condition_variables_Wait_support( if ( status && status != ETIMEDOUT ) return status; - } - else + } else { + _Thread_Enable_dispatch(); status = ETIMEDOUT; + } /* * When we get here the dispatch disable level is 0. |