diff options
author | David Robillard <d@drobilla.net> | 2008-08-13 23:12:52 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-13 23:12:52 +0000 |
commit | ef22788409473e8fbc04b41c90027bbd7f34a9df (patch) | |
tree | 1e12db1e7eeb473d8678fb8f7b47a7d52af4c58d /src/libs/engine/events/DisconnectionEvent.hpp | |
parent | 6d9179c30b56bb7be97e702951c393727d96cf05 (diff) | |
download | ingen-ef22788409473e8fbc04b41c90027bbd7f34a9df.tar.gz ingen-ef22788409473e8fbc04b41c90027bbd7f34a9df.tar.bz2 ingen-ef22788409473e8fbc04b41c90027bbd7f34a9df.zip |
Fix race condition resulting in duplicate connections if several identical requests come in rapid succession.
git-svn-id: http://svn.drobilla.net/lad/ingen@1359 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/events/DisconnectionEvent.hpp')
-rw-r--r-- | src/libs/engine/events/DisconnectionEvent.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libs/engine/events/DisconnectionEvent.hpp b/src/libs/engine/events/DisconnectionEvent.hpp index ea4dbbda..700febeb 100644 --- a/src/libs/engine/events/DisconnectionEvent.hpp +++ b/src/libs/engine/events/DisconnectionEvent.hpp @@ -22,6 +22,7 @@ #include <raul/Path.hpp> #include "QueuedEvent.hpp" #include "types.hpp" +#include "PatchImpl.hpp" using std::string; namespace Raul { @@ -31,7 +32,6 @@ namespace Raul { namespace Ingen { -class PatchImpl; class NodeImpl; class ConnectionImpl; class MidiMessage; @@ -76,8 +76,9 @@ private: OutputPort* _src_output_port; InputPort* _dst_input_port; - bool _lookup; - + bool _lookup; + + PatchImpl::Connections::Node* _patch_connection; CompiledPatch* _compiled_patch; ///< New process order for Patch ErrorType _error; |