From 4f8c30de020ed00997776e1bdb6a1c97724c2c97 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Wed, 18 Sep 2013 12:27:39 +0100 Subject: 'libs/ardour' - Further platform specific changes --- libs/ardour/async_midi_port.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libs/ardour/async_midi_port.cc') diff --git a/libs/ardour/async_midi_port.cc b/libs/ardour/async_midi_port.cc index f282d238cc..bd583328c3 100644 --- a/libs/ardour/async_midi_port.cc +++ b/libs/ardour/async_midi_port.cc @@ -52,7 +52,9 @@ AsyncMIDIPort::AsyncMIDIPort (string const & name, PortFlags flags) , _last_write_timestamp (0) , output_fifo (512) , input_fifo (1024) +#ifndef PLATFORM_WINDOWS , xthread (true) +#endif { } @@ -116,12 +118,13 @@ AsyncMIDIPort::cycle_start (MIDI::pframes_t nframes) for (MidiBuffer::iterator b = mb.begin(); b != mb.end(); ++b) { input_fifo.write (when, (Evoral::EventType) 0, (*b).size(), (*b).buffer()); } - + +#ifndef PLATFORM_WINDOWS if (!mb.empty()) { xthread.wakeup (); } +#endif } - } void -- cgit v1.2.3