diff options
author | Christopher Faylor <me@cgf.cx> | 2005-06-01 14:55:45 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-06-01 14:55:45 +0000 |
commit | 19adafdc21997ce5c2e25ed8bb11b660fc8a3230 (patch) | |
tree | 060b3b851ec382085d24b383cece211aff32038c /winsup/cygwin/thread.h | |
parent | 8d05cca34b4fa15786f248de675e10cc9170bd2b (diff) | |
download | newlib-19adafdc21997ce5c2e25ed8bb11b660fc8a3230.zip newlib-19adafdc21997ce5c2e25ed8bb11b660fc8a3230.tar.gz newlib-19adafdc21997ce5c2e25ed8bb11b660fc8a3230.tar.bz2 |
* thread.h (List_remove): Revert most of 2005-05-30 change.
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r-- | winsup/cygwin/thread.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h index e053503..8bd8b25 100644 --- a/winsup/cygwin/thread.h +++ b/winsup/cygwin/thread.h @@ -143,9 +143,7 @@ List_remove (fast_mutex &mx, list_node *&head, list_node const *node) mx.lock (); if (head) { - if (head == node) - head = head->next; - else + if (InterlockedCompareExchangePointer (&head, node->next, node) != node) { list_node *cur = head; |