Search in sources :

Example 1 with AccumulativeRunnable

use of sun.swing.AccumulativeRunnable in project jdk8u_jdk by JetBrains.

the class SwingWorker method getDoSubmit.

private static AccumulativeRunnable<Runnable> getDoSubmit() {
    synchronized (DO_SUBMIT_KEY) {
        final AppContext appContext = AppContext.getAppContext();
        Object doSubmit = appContext.get(DO_SUBMIT_KEY);
        if (doSubmit == null) {
            doSubmit = new DoSubmitAccumulativeRunnable();
            appContext.put(DO_SUBMIT_KEY, doSubmit);
        }
        return (AccumulativeRunnable<Runnable>) doSubmit;
    }
}
Also used : AccumulativeRunnable(sun.swing.AccumulativeRunnable) AppContext(sun.awt.AppContext)

Aggregations

AppContext (sun.awt.AppContext)1 AccumulativeRunnable (sun.swing.AccumulativeRunnable)1