blob: 9bebf327a11a3446ce305998ba2068a49e0b379d [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
*******************************************************************************/
/*
*/
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();
}
}