Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2013-08-13 08:39:53 -0400
committerHenrik Rentz-Reichert2013-08-13 08:39:53 -0400
commitc09a70245c82409778aca7dc053be8f23d0f34fb (patch)
tree08e195e70dc971efbf5b5e0ac83ae753b8a8a6e3 /runtime/org.eclipse.etrice.runtime.java/src/org/eclipse
parent801868cd932eac99a1c4dfeade4ef860e6e9c4dd (diff)
downloadorg.eclipse.etrice-c09a70245c82409778aca7dc053be8f23d0f34fb.tar.gz
org.eclipse.etrice-c09a70245c82409778aca7dc053be8f23d0f34fb.tar.xz
org.eclipse.etrice-c09a70245c82409778aca7dc053be8f23d0f34fb.zip
[runtime.java] improved thread safety of MessageServiceController
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.java/src/org/eclipse')
-rw-r--r--runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/messaging/MessageServiceController.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/messaging/MessageServiceController.java b/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/messaging/MessageServiceController.java
index 65e3f7e7e..53e5092bb 100644
--- a/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/messaging/MessageServiceController.java
+++ b/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/messaging/MessageServiceController.java
@@ -39,7 +39,7 @@ public class MessageServiceController {
return freeIDs.remove();
}
- public void freeID(int id) {
+ public synchronized void freeID(int id) {
freeIDs.add(id);
}
@@ -54,7 +54,7 @@ public class MessageServiceController {
messageServices.remove(msgSvc.getAddress().threadID);
}
- public IMessageService getMsgSvc(int id){
+ public synchronized IMessageService getMsgSvc(int id){
return messageServices.get(id);
}

Back to the top