summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-07-04 20:44:33 +0200
committerRobin Gareus <robin@gareus.org>2017-07-04 20:44:33 +0200
commitcd30a296917b8cf5cad56baf7a5862ed9dafb871 (patch)
treed3690b90eb3be6d5d183d16aeb634a261f98232a /libs/ardour/ardour
parentc4578db595771b5db9572b23cfe3f9a7ebef66c3 (diff)
Fix session-event queue (multiple writer, single reader)
The reading is done in rt-process thread, but multiple UIs (surfaces, GUI) can produce events to be queued.
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r--libs/ardour/ardour/session_event.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/ardour/session_event.h b/libs/ardour/ardour/session_event.h
index fe109a21f8..643b863537 100644
--- a/libs/ardour/ardour/session_event.h
+++ b/libs/ardour/ardour/session_event.h
@@ -167,6 +167,8 @@ protected:
Events immediate_events;
Events::iterator next_event;
+ Glib::Threads::Mutex rb_write_lock;
+
/* there can only ever be one of each of these */
SessionEvent *auto_loop_event;