Initial commit from SVN.
This commit is contained in:
52
ThreadTest/src/com/threadtest/TestMain.java
Normal file
52
ThreadTest/src/com/threadtest/TestMain.java
Normal file
@@ -0,0 +1,52 @@
|
||||
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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user