Files
Brainstorm/ThreadTest/src/com/threadtest/TestMain.java
2014-05-30 10:31:51 -07:00

53 lines
1.1 KiB
Java

package com.threadtest;
/**
* Copyright Declarative Engineering LLC 2009<p>
*/
public class TestMain {
/**
* @param args
*/
public static void main(String[] args) {
// System.out.println("Starting test");
// new Thread(new Runnable() {
// public void run() {
// System.out.println("Inside thread.");
// }
// }).start();
//
// System.out.println("Thread started");
// try {
// synchronized(TestMain.class) {
// TestMain.class.wait(0);
// }
// }
// catch(Throwable e) {
// e.printStackTrace();
// }
//TestObject.getSingleton();
// System.out.println("Starting SWT event loop thread.");
// Thread t = new Thread(TestObject.getSingleton());
//
// t.start();
//
// System.out.println("Synchronzing");
// synchronized(TestObject.getSingleton()) {
// while(!TestObject.getSingleton().isInitialized) {
// System.out.println("Waiting for isInitialized");
// try {
// TestObject.getSingleton().wait(0);
// }//try//
// catch(Throwable e) {
// e.printStackTrace();
// }//catch//
// }//while//
// }//synchronized//
TestStarter.getSingleton();
}
}