Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2020-06-04 13:07:07 +0000
committerHenrik Rentz-Reichert2020-06-04 13:07:07 +0000
commit132df3e2d2abd4c07be39837055fad01306ab629 (patch)
tree7b62d982e8a1f9d9865768eaa55b58ba05c3073c
parent7d2dca3eab00fd3d3ac4240e2b3f9bd6aeb71127 (diff)
downloadorg.eclipse.etrice-132df3e2d2abd4c07be39837055fad01306ab629.tar.gz
org.eclipse.etrice-132df3e2d2abd4c07be39837055fad01306ab629.tar.xz
org.eclipse.etrice-132df3e2d2abd4c07be39837055fad01306ab629.zip
Bug 563928 - wrong order of calls in etMessageService_pushMessage
Fixed call order: first release mutex, then notify receiver thread. Change-Id: I3c3015689cd1f2ad1a6945fbe0d23af2d5808e6b
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/common/messaging/etMessageService.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/messaging/etMessageService.c b/runtime/org.eclipse.etrice.runtime.c/src/common/messaging/etMessageService.c
index 5aabc44d1..e7298885c 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/common/messaging/etMessageService.c
+++ b/runtime/org.eclipse.etrice.runtime.c/src/common/messaging/etMessageService.c
@@ -160,8 +160,8 @@ void etMessageService_pushMessage(etMessageService* self, etMessage* msg){
ET_MSC_LOGGER_SYNC_ENTRY("etMessageService", "pushMessage")
etMutex_enter(&self->queueMutex);
etMessageQueue_push(&self->messageQueue, msg);
- etSema_wakeup(&self->executionSemaphore);
etMutex_leave(&self->queueMutex);
+ etSema_wakeup(&self->executionSemaphore);
ET_MSC_LOGGER_SYNC_EXIT
}

Back to the top