Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-06-01 18:55:45 +0400
committerChristopher Faylor <me@cgf.cx>2005-06-01 18:55:45 +0400
commit19adafdc21997ce5c2e25ed8bb11b660fc8a3230 (patch)
tree060b3b851ec382085d24b383cece211aff32038c /winsup
parent8d05cca34b4fa15786f248de675e10cc9170bd2b (diff)
* thread.h (List_remove): Revert most of 2005-05-30 change.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/thread.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index a7f8fd2c7..f02f760f6 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2005-06-01 Christopher Faylor <cgf@timesys.com>
+ * thread.h (List_remove): Revert most of 2005-05-30 change.
+
+2005-06-01 Christopher Faylor <cgf@timesys.com>
+
* cygwin.sc: Don't output .reloc or .rsrc sections. Clean up stuff
around .cygheap and use a workaround to get things working with newer
(broken?) binutils.
diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h
index e0535033b..8bd8b2557 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;