[Commit] Compilation error fix

This commit is contained in:
VKamyshniy 2014-11-24 02:54:09 +02:00
parent 64df45fd22
commit 753096efc5

View file

@ -62,13 +62,18 @@ class LIBARDOUR_API AsyncMIDIPort : public ARDOUR::MidiPort, public MIDI::Port {
/* clears async request communication channel */
void clear () {
return xthread.drain ();
#ifndef PLATFORM_WINDOWS
xthread.drain ();
#endif
}
/* Not selectable; use ios() */
int selectable() const { return -1; }
Glib::RefPtr<Glib::IOSource> ios() {
#ifndef PLATFORM_WINDOWS
return xthread.ios();
#else
Glib::RefPtr<Glib::IOSource>();
#endif
}
void set_timer (boost::function<framecnt_t (void)>&);
@ -84,7 +89,9 @@ class LIBARDOUR_API AsyncMIDIPort : public ARDOUR::MidiPort, public MIDI::Port {
RingBuffer< Evoral::Event<double> > output_fifo;
Evoral::EventRingBuffer<MIDI::timestamp_t> input_fifo;
Glib::Threads::Mutex output_fifo_lock;
#ifndef PLATFORM_WINDOWS
CrossThreadChannel xthread;
#endif
int create_port ();