From 0b7ea4abab79b40290651919e506dc2250584e8b Mon Sep 17 00:00:00 2001 From: Torsten Hilbrich Date: Thu, 13 Mar 2014 09:30:25 +0100 Subject: [PATCH] Genode::Connection: Mark as noncopyable When an object derived from Genode::Connection is copied we had strange issues. An example is that the first RPC invocation works correctly but the second one blocks or even delivers incorrect data. We can avoid this issue if the object is always passed by reference. Ensure this by deriving from Genode::Noncopyable. --- base/include/base/connection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/include/base/connection.h b/base/include/base/connection.h index a347d0ae51..80c501bb5f 100644 --- a/base/include/base/connection.h +++ b/base/include/base/connection.h @@ -23,7 +23,7 @@ namespace Genode { * Representation of an open connection to a service */ template - class Connection + class Connection : public Noncopyable { public: