diff options
author | John Anderson <ardour@semiosix.com> | 2007-03-02 20:51:39 +0000 |
---|---|---|
committer | John Anderson <ardour@semiosix.com> | 2007-03-02 20:51:39 +0000 |
commit | a38e2aff788a61c15405100c3be444cf2f5767d2 (patch) | |
tree | 0be09ad3f7b998e34c45c76d98c8f814c98fa63b /libs/surfaces/mackie/surface_port.h | |
parent | abea2e50835f107fcc030f73b7d1c0be4ce1f3fb (diff) |
add locks around port read/write. Much more stable on startup now.
git-svn-id: svn://localhost/ardour2/trunk@1549 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/surface_port.h')
-rw-r--r-- | libs/surfaces/mackie/surface_port.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/surfaces/mackie/surface_port.h b/libs/surfaces/mackie/surface_port.h index c481d02321..c060e52d93 100644 --- a/libs/surfaces/mackie/surface_port.h +++ b/libs/surfaces/mackie/surface_port.h @@ -19,6 +19,7 @@ #define surface_port_h #include <sigc++/signal.h> +#include <glibmm/thread.h> #include "midi_byte_array.h" #include "types.h" @@ -86,6 +87,8 @@ private: MIDI::Port & _port; int _number; bool _active; + + Glib::RecMutex _rwlock; }; std::ostream & operator << ( std::ostream & , const SurfacePort & port ); |