about summary refs log tree commit diff
path: root/linuxthreads/joinrace.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-07-03 04:40:34 +0000
committerRoland McGrath <roland@gnu.org>2005-07-03 04:40:34 +0000
commit88e3fbcb5d6829f8980d6bb356b1c0cd7a38187b (patch)
tree41b73f55c91439f87d82e5d32b9d8e46e82ce3c1 /linuxthreads/joinrace.c
parentd19b1b4f2ff49e085b55e8564b52ca17b028e335 (diff)
downloadglibc-88e3fbcb5d6829f8980d6bb356b1c0cd7a38187b.tar.gz
glibc-88e3fbcb5d6829f8980d6bb356b1c0cd7a38187b.tar.xz
glibc-88e3fbcb5d6829f8980d6bb356b1c0cd7a38187b.zip
linuxthreads, linuxthreads_db: Directories removed (preserved in ports repository).
Diffstat (limited to 'linuxthreads/joinrace.c')
-rw-r--r--linuxthreads/joinrace.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/linuxthreads/joinrace.c b/linuxthreads/joinrace.c
deleted file mode 100644
index 8e1064c984..0000000000
--- a/linuxthreads/joinrace.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* Test case by Permaine Cheung <pcheung@cygnus.com>.  */
-
-#include <errno.h>
-#include <pthread.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-static void *
-sub1 (void *arg)
-{
-  /* Nothing.  */
-  return NULL;
-}
-
-int
-main (void)
-{
-  int istatus;
-  int policy;
-  int cnt;
-  pthread_t thread1;
-  struct sched_param spresult1, sp1;
-
-  for (cnt = 0; cnt < 100; ++cnt)
-    {
-      printf ("Round %d\n", cnt);
-
-      pthread_create (&thread1, NULL, &sub1, NULL);
-      pthread_join (thread1, NULL);
-
-      istatus = pthread_getschedparam (thread1, &policy, &spresult1);
-      if (istatus != ESRCH)
-	{
-	  printf ("pthread_getschedparam returns: %d\n", istatus);
-	  return 1;
-	}
-
-      sp1.sched_priority = 0;
-      istatus = pthread_setschedparam (thread1, SCHED_OTHER, &sp1);
-      if (istatus != ESRCH)
-	{
-	  printf ("pthread_setschedparam returns: %d\n", istatus);
-	  return 2;
-	}
-    }
-
-  return 0;
-}