X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.utils.thread%2Fsrc%2Forg%2Fsimantics%2Futils%2Fthreads%2FExecutable.java;h=9dd845ebadf04e78deaf8c7bf4016e17cb221b31;hb=1dfeb7d5c49b1391cd9d877e1eddab18995cb151;hp=52c52d1f4d60538b90d41a32f6cf6f6af6781223;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.utils.thread/src/org/simantics/utils/threads/Executable.java b/bundles/org.simantics.utils.thread/src/org/simantics/utils/threads/Executable.java index 52c52d1f4..9dd845eba 100644 --- a/bundles/org.simantics.utils.thread/src/org/simantics/utils/threads/Executable.java +++ b/bundles/org.simantics.utils.thread/src/org/simantics/utils/threads/Executable.java @@ -1,34 +1,34 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * 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: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -/* - * - * @author Toni Kalajainen - */ -package org.simantics.utils.threads; - -/** - * Executable is a runnable bound to be ran in a specific thread. - * - */ -public class Executable -{ - public final static Executable [] EMPTY_ARRAY = new Executable[0]; - - public final IThreadWorkQueue threadAccess; - public final Runnable runnable; - - public Executable(IThreadWorkQueue threadAccess, Runnable runnable) { - this.threadAccess = threadAccess; - this.runnable = runnable; - } - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * 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: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +/* + * + * @author Toni Kalajainen + */ +package org.simantics.utils.threads; + +/** + * Executable is a runnable bound to be ran in a specific thread. + * + */ +public class Executable +{ + public final static Executable [] EMPTY_ARRAY = new Executable[0]; + + public final IThreadWorkQueue threadAccess; + public final Runnable runnable; + + public Executable(IThreadWorkQueue threadAccess, Runnable runnable) { + this.threadAccess = threadAccess; + this.runnable = runnable; + } + +}