From 8513a822501175e510591ff15418022a145ddc81 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 28 Apr 2011 18:19:28 +0000 Subject: Improve RingBuffer implementation. Previous implementation was broken when written to full capacity, and this version is significantly faster as well. git-svn-id: http://svn.drobilla.net/lad/trunk/machina@3213 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/Controller.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/engine/Controller.cpp') diff --git a/src/engine/Controller.cpp b/src/engine/Controller.cpp index edde2b1..1b92e5f 100644 --- a/src/engine/Controller.cpp +++ b/src/engine/Controller.cpp @@ -15,6 +15,8 @@ * along with Machina. If not, see . */ +#include "raul/log.hpp" + #include "client/ClientModel.hpp" #include "client/ClientObject.hpp" #include "machina/Controller.hpp" @@ -139,10 +141,11 @@ Controller::disconnect(uint64_t tail_id, uint64_t head_id) SharedPtr head = PtrCast(find(head_id)); SharedPtr edge = tail->remove_edge_to(head); - if (edge) + if (edge) { _client_model.erase_object(edge->id()); - else + } else { Raul::error << "Edge not found" << std::endl; + } } void -- cgit v1.2.1