]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - libjava/testsuite/libjava.lang/Thread_Wait.java
Imported gcc-4.4.3
[msp430-gcc.git] / libjava / testsuite / libjava.lang / Thread_Wait.java
diff --git a/libjava/testsuite/libjava.lang/Thread_Wait.java b/libjava/testsuite/libjava.lang/Thread_Wait.java
deleted file mode 100644 (file)
index a649282..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-// Test basic thread creation and wait/notify functionality.
-// Origin: Bryce McKinlay <bryce@albatross.co.nz>
-
-public class Thread_Wait implements Runnable
-{
-  public static void main(String args[])
-  {
-    new Thread_Wait();
-  }
-  
-  public Thread_Wait()
-  {
-    System.out.println("creating thread");
-    Thread t = new Thread(this);
-    t.start();
-    
-    try
-    {
-      Thread.sleep(100);
-    }
-    catch (Exception x)
-    {
-      System.out.println("exception occurred: " + x);
-    }
-
-    synchronized (this)
-    {
-      System.out.println("notifying other thread");
-      notify();
-    }
-  }
-  
-  public void run()
-  {
-    System.out.println ("new thread running");
-    synchronized (this)
-    {
-      try
-      {
-       wait();
-      }
-      catch (Exception x)
-      {
-        System.out.println("exception occurred: " + x);
-      }
-    }    
-    System.out.println ("thread notified okay");
-  }
-}