summaryrefslogtreecommitdiff
path: root/libs/ardour/async_midi_port.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-12-03 20:53:49 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-12-03 20:53:49 -0500
commitd762ed8c22edb1007647b5540fa5059993f59f8c (patch)
treeb0adfcdecb5158c30970af94679c1ab0f047cd4e /libs/ardour/async_midi_port.cc
parentf72b87b44841b38f1046619b1a607b6a525a8d25 (diff)
alter Async MIDI port implementation to use crossthreadchannel on all platforms
Diffstat (limited to 'libs/ardour/async_midi_port.cc')
-rw-r--r--libs/ardour/async_midi_port.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/ardour/async_midi_port.cc b/libs/ardour/async_midi_port.cc
index 4ce1bfefbe..f0a92b9594 100644
--- a/libs/ardour/async_midi_port.cc
+++ b/libs/ardour/async_midi_port.cc
@@ -37,6 +37,10 @@ using namespace ARDOUR;
using namespace std;
using namespace PBD;
+namespace Evoral {
+ template class EventRingBuffer<MIDI::timestamp_t>;
+}
+
pthread_t AsyncMIDIPort::_process_thread;
#define port_engine AudioEngine::instance()->port_engine()
@@ -49,9 +53,7 @@ AsyncMIDIPort::AsyncMIDIPort (string const & name, PortFlags flags)
, have_timer (false)
, output_fifo (512)
, input_fifo (1024)
-#ifndef PLATFORM_WINDOWS
- , xthread (true)
-#endif
+ , _xthread (true)
{
}
@@ -132,11 +134,9 @@ AsyncMIDIPort::cycle_start (MIDI::pframes_t nframes)
input_fifo.write (when, (Evoral::EventType) 0, (*b).size(), (*b).buffer());
}
-#ifndef PLATFORM_WINDOWS
if (!mb.empty()) {
- xthread.wakeup ();
+ _xthread.wakeup ();
}
-#endif
}
}