From 424cf54073e029fe434ad3964c475f4111c916fe Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Wed, 14 Oct 2009 16:39:54 +0000 Subject: [PATCH] [292266] More ThreadSafe methods --- .../src/org/eclipse/cdt/dsf/service/DsfSession.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/service/DsfSession.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/service/DsfSession.java index 4cd415b0ddd..81a0aeefce9 100644 --- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/service/DsfSession.java +++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/service/DsfSession.java @@ -253,13 +253,13 @@ public class DsfSession } /** ID (plugin ID preferably) of the owner of this session */ - private String fOwnerId; + private final String fOwnerId; /** Session ID of this session. */ - private String fId; + private final String fId; /** Dispatch-thread executor for this session */ - private DsfExecutor fExecutor; + private final DsfExecutor fExecutor; /** Service start-up counter for this session */ private int fServiceInstanceCounter; @@ -275,14 +275,17 @@ public class DsfSession private Map,Object> fAdapters = Collections.synchronizedMap(new HashMap,Object>()); /** Returns the owner ID of this session */ + @ThreadSafe public String getOwnerId() { return fOwnerId; } public boolean isActive() { return DsfSession.isSessionActive(fId); } /** Returns the ID of this session */ + @ThreadSafe public String getId() { return fId; } /** Returns the DSF executor of this session */ + @ThreadSafe public DsfExecutor getExecutor() { return fExecutor; } /**