blob: 1c67734b6fa6cab5e8ce1ee2c0e5c63503b27315 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2019 CEA LIST.
*
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* CEA LIST - Initial API and implementation
* CEA LIST - Bug 551906
*
*****************************************************************************/
package org.eclipse.papyrus.moka.debug.target;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.IThread;
import org.eclipse.papyrus.moka.kernel.SuspensionReasons;
public interface IExecutionEngineThread extends IThread{
/**
* Return the ID associated with this thread
* @return id
*/
String getID();
/**
* Handle the thread suspension required by the targeted execution engine
*
* @param detail
* suspension request detail
* @throws DebugException
*/
void handleSuspendEvent(int supensionDetail);
/**
* Return the suspension reason
* @return the suspension reason
*/
SuspensionReasons getSuspensionReason();
}