summary refs log tree commit diff
path: root/nptl/cancellation.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-05-26 02:09:08 +0000
committerUlrich Drepper <drepper@redhat.com>2003-05-26 02:09:08 +0000
commit6a998b09ec734d8dd40e690244122a43bf9d7a16 (patch)
treeec2d0650303a2e91bb418e2b645044580ae6c704 /nptl/cancellation.c
parent5550a8faf43f3465bbdc6967118a55548893b68a (diff)
downloadglibc-6a998b09ec734d8dd40e690244122a43bf9d7a16.tar.gz
glibc-6a998b09ec734d8dd40e690244122a43bf9d7a16.tar.xz
glibc-6a998b09ec734d8dd40e690244122a43bf9d7a16.zip
Remove __pthread_enable_asynccancel_2.
Diffstat (limited to 'nptl/cancellation.c')
-rw-r--r--nptl/cancellation.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/nptl/cancellation.c b/nptl/cancellation.c
index c7477d87df..1d28d383f9 100644
--- a/nptl/cancellation.c
+++ b/nptl/cancellation.c
@@ -59,40 +59,6 @@ __pthread_enable_asynccancel (void)
   return oldval;
 }
 
-/* XXX Ideally we have only one version.  But this needs preparation.  */
-void
-internal_function attribute_hidden
-__pthread_enable_asynccancel_2 (int *oldvalp)
-{
-  struct pthread *self = THREAD_SELF;
-  int oldval = THREAD_GETMEM (self, cancelhandling);
-
-  while (1)
-    {
-      int newval = oldval | CANCELTYPE_BITMASK;
-
-      if (newval == oldval)
-	break;
-
-      /* We have to store the value before enablying asynchronous
-	 cancellation.  */
-      *oldvalp = oldval;
-
-      int curval = THREAD_ATOMIC_CMPXCHG_VAL (self, cancelhandling, newval,
-					      oldval);
-      if (__builtin_expect (curval == oldval, 1))
-	{
-	  if (CANCEL_ENABLED_AND_CANCELED_AND_ASYNCHRONOUS (newval))
-	    {
-	      THREAD_SETMEM (self, result, PTHREAD_CANCELED);
-	      __do_cancel ();
-	    }
-
-	  break;
-	}
-    }
-}
-
 
 void
 internal_function attribute_hidden