aboutsummaryrefslogtreecommitdiff
path: root/libjava/win32-threads.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/win32-threads.cc')
-rw-r--r--libjava/win32-threads.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/win32-threads.cc b/libjava/win32-threads.cc
index 9c6ae8c..8da274f 100644
--- a/libjava/win32-threads.cc
+++ b/libjava/win32-threads.cc
@@ -69,6 +69,8 @@ _Jv_CondWait (_Jv_ConditionVariable_t *cv, _Jv_Mutex_t *mu, jlong millis, jint n
DWORD time;
DWORD rval;
+ // FIXME: check for mutex ownership?
+
_Jv_MutexUnlock (mu);
if((millis == 0) && (nanos > 0))
@@ -82,9 +84,7 @@ _Jv_CondWait (_Jv_ConditionVariable_t *cv, _Jv_Mutex_t *mu, jlong millis, jint n
_Jv_MutexLock (mu);
if (rval == WAIT_FAILED)
- return GetLastError (); // FIXME: Map to errno?
- else if (rval == WAIT_TIMEOUT)
- return ETIMEDOUT;
+ return _JV_NOT_OWNER; // FIXME?
else
return 0;
}