diff options
author | Christopher Faylor <me@cgf.cx> | 2005-07-05 02:02:23 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-07-05 02:02:23 +0000 |
commit | a64b8b2dec5ba82dd3933a959e3e3f5f09116963 (patch) | |
tree | b9da8f9f91c2c0bb9f91c68fcdd615e2d1866101 | |
parent | cec1d3b41462de53d2e9dde53e4483c4ca03076f (diff) | |
download | newlib-a64b8b2dec5ba82dd3933a959e3e3f5f09116963.zip newlib-a64b8b2dec5ba82dd3933a959e3e3f5f09116963.tar.gz newlib-a64b8b2dec5ba82dd3933a959e3e3f5f09116963.tar.bz2 |
ARGH. Check in previous uncommitted-but-ChangeLog'ed entry.
-rw-r--r-- | winsup/cygwin/thread.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index 6148ff5..acd9974 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -117,9 +117,11 @@ verifyable_object_isvalid (void const * objectptr, long magic, void *static_ptr1 void *static_ptr2, void *static_ptr3) { verifyable_object **object = (verifyable_object **) objectptr; + myfault efault; if (efault.faulted ()) return INVALID_OBJECT; + if ((static_ptr1 && *object == static_ptr1) || (static_ptr2 && *object == static_ptr2) || (static_ptr3 && *object == static_ptr3)) @@ -2614,8 +2616,8 @@ pthread_cond_timedwait (pthread_cond_t *cond, pthread_mutex_t *mutex, { struct timeval tv; long waitlength; - myfault efault; + myfault efault; if (efault.faulted ()) return EINVAL; @@ -2886,8 +2888,7 @@ pthread_mutex::init (pthread_mutex_t *mutex, { pthread_mutex_t new_mutex; - myfault efault; - if (attr && !pthread_mutexattr::is_good_object (attr) || efault.faulted ()) + if (attr && !pthread_mutexattr::is_good_object (attr)) return EINVAL; mutex_initialization_lock.lock (); |