mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-01 05:15:43 +02:00
[292616] [concurrency] Missing annotations in SteppingController
This commit is contained in:
parent
a2d89b3d85
commit
4aa54bd7e5
1 changed files with 10 additions and 2 deletions
|
@ -20,11 +20,13 @@ import java.util.concurrent.RejectedExecutionException;
|
||||||
import java.util.concurrent.ScheduledFuture;
|
import java.util.concurrent.ScheduledFuture;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.dsf.concurrent.ConfinedToDsfExecutor;
|
||||||
import org.eclipse.cdt.dsf.concurrent.DataRequestMonitor;
|
import org.eclipse.cdt.dsf.concurrent.DataRequestMonitor;
|
||||||
import org.eclipse.cdt.dsf.concurrent.DsfExecutor;
|
import org.eclipse.cdt.dsf.concurrent.DsfExecutor;
|
||||||
import org.eclipse.cdt.dsf.concurrent.DsfRunnable;
|
import org.eclipse.cdt.dsf.concurrent.DsfRunnable;
|
||||||
import org.eclipse.cdt.dsf.concurrent.IDsfStatusConstants;
|
import org.eclipse.cdt.dsf.concurrent.IDsfStatusConstants;
|
||||||
import org.eclipse.cdt.dsf.concurrent.RequestMonitor;
|
import org.eclipse.cdt.dsf.concurrent.RequestMonitor;
|
||||||
|
import org.eclipse.cdt.dsf.concurrent.ThreadSafe;
|
||||||
import org.eclipse.cdt.dsf.datamodel.AbstractDMEvent;
|
import org.eclipse.cdt.dsf.datamodel.AbstractDMEvent;
|
||||||
import org.eclipse.cdt.dsf.datamodel.DMContexts;
|
import org.eclipse.cdt.dsf.datamodel.DMContexts;
|
||||||
import org.eclipse.cdt.dsf.debug.service.IRunControl;
|
import org.eclipse.cdt.dsf.debug.service.IRunControl;
|
||||||
|
@ -53,8 +55,8 @@ import org.eclipse.jface.util.PropertyChangeEvent;
|
||||||
*
|
*
|
||||||
* @since 1.1
|
* @since 1.1
|
||||||
*/
|
*/
|
||||||
public final class SteppingController
|
@ConfinedToDsfExecutor("#getExecutor()")
|
||||||
{
|
public final class SteppingController {
|
||||||
/**
|
/**
|
||||||
* Amount of time in milliseconds, that it takes the SteppingTimedOutEvent
|
* Amount of time in milliseconds, that it takes the SteppingTimedOutEvent
|
||||||
* event to be issued after a step is started.
|
* event to be issued after a step is started.
|
||||||
|
@ -164,6 +166,7 @@ public final class SteppingController
|
||||||
setMinimumStepInterval(store.getInt(IDsfDebugUIConstants.PREF_MIN_STEP_INTERVAL));
|
setMinimumStepInterval(store.getInt(IDsfDebugUIConstants.PREF_MIN_STEP_INTERVAL));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ThreadSafe
|
||||||
public void dispose() {
|
public void dispose() {
|
||||||
try {
|
try {
|
||||||
fSession.getExecutor().execute(new DsfRunnable() {
|
fSession.getExecutor().execute(new DsfRunnable() {
|
||||||
|
@ -188,6 +191,7 @@ public final class SteppingController
|
||||||
*
|
*
|
||||||
* @param interval
|
* @param interval
|
||||||
*/
|
*/
|
||||||
|
@ThreadSafe
|
||||||
public void setMinimumStepInterval(int interval) {
|
public void setMinimumStepInterval(int interval) {
|
||||||
fMinStepInterval = interval;
|
fMinStepInterval = interval;
|
||||||
}
|
}
|
||||||
|
@ -205,6 +209,7 @@ public final class SteppingController
|
||||||
*
|
*
|
||||||
* @param participant
|
* @param participant
|
||||||
*/
|
*/
|
||||||
|
@ThreadSafe
|
||||||
public void addSteppingControlParticipant(ISteppingControlParticipant participant) {
|
public void addSteppingControlParticipant(ISteppingControlParticipant participant) {
|
||||||
fParticipants.add(participant);
|
fParticipants.add(participant);
|
||||||
}
|
}
|
||||||
|
@ -214,6 +219,7 @@ public final class SteppingController
|
||||||
*
|
*
|
||||||
* @param participant
|
* @param participant
|
||||||
*/
|
*/
|
||||||
|
@ThreadSafe
|
||||||
public void removeSteppingControlParticipant(final ISteppingControlParticipant participant) {
|
public void removeSteppingControlParticipant(final ISteppingControlParticipant participant) {
|
||||||
fParticipants.remove(participant);
|
fParticipants.remove(participant);
|
||||||
}
|
}
|
||||||
|
@ -246,6 +252,7 @@ public final class SteppingController
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ThreadSafe
|
||||||
public DsfSession getSession() {
|
public DsfSession getSession() {
|
||||||
return fSession;
|
return fSession;
|
||||||
}
|
}
|
||||||
|
@ -254,6 +261,7 @@ public final class SteppingController
|
||||||
* All access to this class should happen through this executor.
|
* All access to this class should happen through this executor.
|
||||||
* @return the executor this class is confined to
|
* @return the executor this class is confined to
|
||||||
*/
|
*/
|
||||||
|
@ThreadSafe
|
||||||
public DsfExecutor getExecutor() {
|
public DsfExecutor getExecutor() {
|
||||||
return getSession().getExecutor();
|
return getSession().getExecutor();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue