blob: 761f48edff9e3652d9992da04d2faac6ff44e081 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
/*
* $RCSfile: AWTStarter.java,v $
* $Revision: 1.1 $ $Date: 2005/05/11 19:01:12 $
*/
package org.eclipse.jem.internal.proxy.vm.remote;
import java.awt.Toolkit;
/**
* This class is used to do start the AWT eventqueue ahead of time to try to parallel process it.
* @since 1.1.0
*/
public class AWTStarter {
public static void startAWT() {
Thread t = new Thread() {
public void run() {
Thread.yield(); // So as not to possibly hold up the guy doing the starting.
Toolkit.getDefaultToolkit();
}
};
t.start();
}
}