Application Ending Before Secondary Thread Ends
- From: Marshall Lake <mlake mlake net>
- To: gtk-app-devel-list gnome org
- Subject: Application Ending Before Secondary Thread Ends
- Date: Wed, 11 Nov 2009 16:06:40 -0500 (EST)
I play audio via g_thread. If the user quits the application before the
thread is completed (and the user executes the application from the
command line) the terminal needs reseting. It's fine if the thread ends
before the user quits the application.
I haven't tried but I expect I can avoid this behavior by doing a
g_thread_join() and waiting for the thread to finish before exiting the
application. But I don't really want to do that (some of the audio is
very long). Are there any alternatives?
--
Marshall Lake -- mlake mlake net -- http://mlake.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]