Rename blocking thread function in portaudio backend
authorTim Mayberry <mojofunk@gmail.com>
Mon, 30 Nov 2015 04:21:26 +0000 (14:21 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Wed, 2 Dec 2015 00:24:05 +0000 (10:24 +1000)
libs/backends/portaudio/portaudio_backend.cc

index 2f34f71e82437bf2b26d95561a3f4bef25b30027..49819537cb5c851b72ee7723751049996d3cd576 100644 (file)
@@ -433,7 +433,7 @@ PortAudioBackend::midi_option () const
 
 /* State Control */
 
-static void * pthread_process (void *arg)
+static void * blocking_thread_func (void *arg)
 {
        PortAudioBackend *d = static_cast<PortAudioBackend *>(arg);
        d->main_blocking_process_thread ();
@@ -671,9 +671,9 @@ bool
 PortAudioBackend::start_blocking_process_thread ()
 {
        if (_realtime_pthread_create (SCHED_FIFO, -20, 100000,
-                               &_main_blocking_thread, pthread_process, this))
+                               &_main_blocking_thread, blocking_thread_func, this))
        {
-               if (pthread_create (&_main_blocking_thread, NULL, pthread_process, this))
+               if (pthread_create (&_main_blocking_thread, NULL, blocking_thread_func, this))
                {
                        DEBUG_AUDIO("Failed to create main audio thread\n");
                        _run = false;