X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=libs%2Fardour%2Fasync_midi_port.cc;h=d6d9a953aaa61ca471aa90ae3857356765669c01;hb=8a5b5145cc8c7a1fcffdd8387f3f4cdc79af0911;hp=21b59dec00241bacfaa3a9b11acba2fb19fb932d;hpb=152935e736eaf06f85bc7f5cb27337a62d95edd4;p=ardour.git diff --git a/libs/ardour/async_midi_port.cc b/libs/ardour/async_midi_port.cc index 21b59dec00..d6d9a953aa 100644 --- a/libs/ardour/async_midi_port.cc +++ b/libs/ardour/async_midi_port.cc @@ -37,10 +37,6 @@ using namespace ARDOUR; using namespace std; using namespace PBD; -namespace Evoral { - template class EventRingBuffer; -} - pthread_t AsyncMIDIPort::_process_thread; #define port_engine AudioEngine::instance()->port_engine() @@ -53,9 +49,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) { } @@ -64,7 +58,7 @@ AsyncMIDIPort::~AsyncMIDIPort () } void -AsyncMIDIPort::set_timer (boost::function& f) +AsyncMIDIPort::set_timer (boost::function& f) { timer = f; have_timer = true; @@ -136,11 +130,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 } }