Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2013-08-08 16:31:26 -0400
committerHenrik Rentz-Reichert2013-08-08 16:31:26 -0400
commitd9833dc4be18cd6755a3bbf9554c7e47c9d3b4b4 (patch)
tree4c241d2fc3847199161cbf1bca551ed404778864 /runtime/org.eclipse.etrice.runtime.java/src/org/eclipse
parent2af0dfc2f970f9e87d4a30a0ae4207c418933c41 (diff)
downloadorg.eclipse.etrice-d9833dc4be18cd6755a3bbf9554c7e47c9d3b4b4.tar.gz
org.eclipse.etrice-d9833dc4be18cd6755a3bbf9554c7e47c9d3b4b4.tar.xz
org.eclipse.etrice-d9833dc4be18cd6755a3bbf9554c7e47c9d3b4b4.zip
[runtime.java, runtime.java.tests] fixed tests
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/MessageService.java2
-rw-r--r--runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/messaging/MessageServiceController.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/messaging/MessageService.java b/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/messaging/MessageService.java
index a2ad65c48..9ca624c85 100644
--- a/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/messaging/MessageService.java
+++ b/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/messaging/MessageService.java
@@ -72,7 +72,7 @@ public class MessageService extends RTObject implements IMessageService {
public synchronized void receive(Message msg) {
if (msg!=null) {
messageQueue.push(msg);
- notifyAll(); // wake up thread to compute message
+ notifyAll(); // wake up thread to process message
}
}
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 a47101bbe..65e3f7e7e 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
@@ -34,7 +34,7 @@ public class MessageServiceController {
public synchronized int getNewID() {
if (freeIDs.isEmpty())
- return nextFreeID;
+ return nextFreeID++;
else
return freeIDs.remove();
}

Back to the top