re GNATS libgcj/40 (wait(timeout) wrongly throws IllegalMonitorState exception)
* posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal result. PR 40. From-SVN: r28799
This commit is contained in:
parent
ccfe7e4650
commit
33e8c77e61
2 changed files with 8 additions and 0 deletions
|
@ -91,6 +91,9 @@ _Jv_CondWait (_Jv_ConditionVariable_t *cv, _Jv_Mutex_t *mu,
|
|||
ts.tv_nsec = ((m % 1000) * 1000000) + nanos;
|
||||
|
||||
r = pthread_cond_timedwait (cv, pmu, &ts);
|
||||
/* A timeout is a normal result. */
|
||||
if (r && errno == ETIME)
|
||||
r = 0;
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue