diff options
author | John Cortell | 2010-10-21 18:40:33 +0000 |
---|---|---|
committer | John Cortell | 2010-10-21 18:40:33 +0000 |
commit | 679e9ce2f9d4a7aa17d3e20c5df61921a8352658 (patch) | |
tree | 6801d03e3825656070196296734e4fafb6b5f198 /dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui | |
parent | 04a623ab674e6f11cc89eeac0c1bcadde10db1ad (diff) | |
download | org.eclipse.cdt-679e9ce2f9d4a7aa17d3e20c5df61921a8352658.tar.gz org.eclipse.cdt-679e9ce2f9d4a7aa17d3e20c5df61921a8352658.tar.xz org.eclipse.cdt-679e9ce2f9d4a7aa17d3e20c5df61921a8352658.zip |
Documentation
Diffstat (limited to 'dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui')
-rw-r--r-- | dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/concurrent/DisplayDsfExecutor.java | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/concurrent/DisplayDsfExecutor.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/concurrent/DisplayDsfExecutor.java index 54194532e37..a3f4bff9ffb 100644 --- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/concurrent/DisplayDsfExecutor.java +++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/concurrent/DisplayDsfExecutor.java @@ -43,12 +43,19 @@ public class DisplayDsfExecutor extends DefaultDsfExecutor * Internal mapping of display objects to executors. */ private static Map<Display, DisplayDsfExecutor> fExecutors = Collections.synchronizedMap( new HashMap<Display, DisplayDsfExecutor>() ); - - /** - * Factory method for display executors. - * @param display Display to create an executor for. - * @return The new (or re-used) executor. - */ + + /** + * Factory method for display executors. + * + * <p> + * Call this from the GUI thread unless you are certain an instance has + * already been created for the given display (creation of new instance will + * fail on a non-GUI thread). + * + * @param display + * Display to create an executor for. + * @return The new (or re-used) executor. + */ public static DisplayDsfExecutor getDisplayDsfExecutor(Display display) { synchronized (fExecutors) { DisplayDsfExecutor executor = fExecutors.get(display); |