From 5ec3809c599981f79db87f41f4b181eb5456a4f7 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 25 Jun 2009 21:17:34 -0500 Subject: [PATCH] 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. --- softsynth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/softsynth.c b/softsynth.c index 62dfd84..96d0aca 100644 --- a/softsynth.c +++ b/softsynth.c @@ -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; }