mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
[292266] More ThreadSafe methods
This commit is contained in:
parent
8595a6080b
commit
424cf54073
1 changed files with 6 additions and 3 deletions
|
@ -253,13 +253,13 @@ public class DsfSession
|
||||||
}
|
}
|
||||||
|
|
||||||
/** ID (plugin ID preferably) of the owner of this session */
|
/** ID (plugin ID preferably) of the owner of this session */
|
||||||
private String fOwnerId;
|
private final String fOwnerId;
|
||||||
|
|
||||||
/** Session ID of this session. */
|
/** Session ID of this session. */
|
||||||
private String fId;
|
private final String fId;
|
||||||
|
|
||||||
/** Dispatch-thread executor for this session */
|
/** Dispatch-thread executor for this session */
|
||||||
private DsfExecutor fExecutor;
|
private final DsfExecutor fExecutor;
|
||||||
|
|
||||||
/** Service start-up counter for this session */
|
/** Service start-up counter for this session */
|
||||||
private int fServiceInstanceCounter;
|
private int fServiceInstanceCounter;
|
||||||
|
@ -275,14 +275,17 @@ public class DsfSession
|
||||||
private Map<Class<?>,Object> fAdapters = Collections.synchronizedMap(new HashMap<Class<?>,Object>());
|
private Map<Class<?>,Object> fAdapters = Collections.synchronizedMap(new HashMap<Class<?>,Object>());
|
||||||
|
|
||||||
/** Returns the owner ID of this session */
|
/** Returns the owner ID of this session */
|
||||||
|
@ThreadSafe
|
||||||
public String getOwnerId() { return fOwnerId; }
|
public String getOwnerId() { return fOwnerId; }
|
||||||
|
|
||||||
public boolean isActive() { return DsfSession.isSessionActive(fId); }
|
public boolean isActive() { return DsfSession.isSessionActive(fId); }
|
||||||
|
|
||||||
/** Returns the ID of this session */
|
/** Returns the ID of this session */
|
||||||
|
@ThreadSafe
|
||||||
public String getId() { return fId; }
|
public String getId() { return fId; }
|
||||||
|
|
||||||
/** Returns the DSF executor of this session */
|
/** Returns the DSF executor of this session */
|
||||||
|
@ThreadSafe
|
||||||
public DsfExecutor getExecutor() { return fExecutor; }
|
public DsfExecutor getExecutor() { return fExecutor; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue