From 668c9c852f1f2e92bff6a8ccf4f1986b9fb8734a Mon Sep 17 00:00:00 2001
From: Florian Schmaus <flow@cs.fau.de>
Date: Thu, 3 Aug 2017 10:46:41 +0200
Subject: [PATCH] Fix MpscQueue

Waaaaaaahhhhhhhhhhhhhhhhhh!!
---
 emper/lib/adt/MpscQueue.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emper/lib/adt/MpscQueue.hpp b/emper/lib/adt/MpscQueue.hpp
index b7224163..00d0c540 100644
--- a/emper/lib/adt/MpscQueue.hpp
+++ b/emper/lib/adt/MpscQueue.hpp
@@ -22,7 +22,7 @@ public:
 	void enqueue(T* item) {
 		item->setMpscNext(nullptr);
 		T* prev = tail.exchange(item);
-		prev->setMpscNext(prev);
+		prev->setMpscNext(item);
 	}
 
 	T* dequeue() {
-- 
GitLab