1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
Marc Khouzam 2015-03-20 11:11:58 -04:00
parent 89cb33363e
commit 70128c214a
8 changed files with 18 additions and 20 deletions

View file

@ -1,7 +1,5 @@
package org.eclipse.cdt.dsf.concurrent;
/*******************************************************************************
* Copyright (c) 2008 Wind River Systems, Inc. and others.
* Copyright (c) 2008, 2015 Wind River Systems, Inc. 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
@ -10,6 +8,7 @@ package org.eclipse.cdt.dsf.concurrent;
* Contributors:
* Wind River Systems - initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.dsf.concurrent;
import java.util.ArrayList;
import java.util.List;

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2006, 2014 Wind River Systems and others.
* Copyright (c) 2006, 2015 Wind River Systems 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
@ -181,7 +181,7 @@ public class DsfExecutable {
// Bug 306982
// Disable the use of finalize() method in DSF runnables tracing to avoid
// a performance penalty in garbage colleciton.
// a performance penalty in garbage collection.
//
// /**
// * Checks to see if the object was executed before being garbage collected.

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2006, 2009 Wind River Systems and others.
* Copyright (c) 2006, 2015 Wind River Systems 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
@ -17,7 +17,7 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation idicating that given class is immutable and thus thread-safe.
* Annotation indicating that given class is immutable and thus thread-safe.
* This annotation is not automatically inherited by sub-classes, since
* sub-classes need to make sure that they are immutable as well.
* <p>

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2006, 2009 Wind River Systems and others.
* Copyright (c) 2006, 2015 Wind River Systems 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
@ -73,7 +73,7 @@ public class MultiRequestMonitor<V extends RequestMonitor> extends RequestMonito
* unnecessary cast by the client.
* @param rm Request monitor object to add to the tracker
* @return The request monitor that was just added, it allows this method to be used
* inlined in service method calls
* in-lined in service method calls
*/
public synchronized <T extends V> T add(T rm) {
assert !fStatusMap.containsKey(rm);

View file

@ -1,7 +1,5 @@
package org.eclipse.cdt.dsf.concurrent;
/*******************************************************************************
* Copyright (c) 2008 Wind River Systems, Inc. and others.
* Copyright (c) 2008, 2015 Wind River Systems, Inc. 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
@ -10,6 +8,7 @@ package org.eclipse.cdt.dsf.concurrent;
* Contributors:
* Wind River Systems - initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.dsf.concurrent;
import org.eclipse.core.runtime.IStatus;
@ -49,7 +48,7 @@ public abstract class RequestCache<V> extends AbstractCache<V> {
protected void handleCompleted() {
if (this == fRm) {
fRm = null;
// If the requestor canceled the request, then leave the
// If the requester canceled the request, then leave the
// cache as is, regardless of how the retrieval completes.
// We want the cache to stay in the invalid state so that
// it remains functional. The request may have completed

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2006, 2009 Wind River Systems and others.
* Copyright (c) 2006, 2015 Wind River Systems 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
@ -12,7 +12,7 @@ package org.eclipse.cdt.dsf.concurrent;
/**
* Untility class for easy pretty-printing stack traces. Local to the
* Utility class for easy pretty-printing stack traces. Local to the
* concurrent package.
*
* @since 1.0

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2006, 2009 Wind River Systems and others.
* Copyright (c) 2006, 2015 Wind River Systems 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
@ -18,7 +18,7 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation idicating that given package, class, method, or field can be
* Annotation indicating that given package, class, method, or field can be
* access safely from any thread. If declared on package or type, a field
* or method could still be declared with an annotation indicating that it's
* not thread-safe.

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2006, 2010 Wind River Systems and others.
* Copyright (c) 2006, 2015 Wind River Systems 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
@ -56,7 +56,7 @@ abstract public class AbstractDMContext extends PlatformObject
this(service.getSession(), parents);
}
/** Backward compatiblity constructor */
/** Backward compatibility constructor */
public AbstractDMContext(String fSessionId, IDMContext[] parents) {
this(DsfSession.getSession(fSessionId), parents);
}
@ -132,7 +132,7 @@ abstract public class AbstractDMContext extends PlatformObject
* standard platform <code>IAdapterManager</code> is not sufficient in
* handling adapters for the model context object. This is because
* <code>IAdapterManager</code> uses only the class of the adaptable to
* select the correct adapter factoru, while for model context, the
* select the correct adapter factory, while for model context, the
* session is equally important.
* @see org.eclipse.runtime.IAdapterManager
*/