wake up espeak_thread when softsynth_thread terminates

espeak_thread needs a signal since it might be sleeping and
should_run has changed.  This makes sure it terminates.
This commit is contained in:
William Hubbs 2009-06-25 21:17:34 -05:00
commit 5ec3809c59

View file

@ -256,6 +256,7 @@ void *softsynth_thread(void *arg)
process_buffer(s, buf, length);
pthread_mutex_lock(&queue_guard);
}
pthread_cond_signal(&runner_awake);
pthread_mutex_unlock(&queue_guard);
return NULL;
}