Re: strange segfault in threading
- From: Luka Napotnik <luka napotnik gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: strange segfault in threading
- Date: Wed, 14 Mar 2007 15:21:36 +0100
I fixed this issue by making g_timeout() calls to a function that checks
a queue for requests to change the UI.
Greets,
Luka
On sre, 2007-03-14 at 08:40 -0500, Michael Ekstrand wrote:
On Wed, 2007-03-14 at 11:49 +0100, Luka Napotnik wrote:
while (gtk_events_pending())
gtk_main_iteration();
gdk_threads_leave();
I don't think it's correct to try to run the main loop (which is what
the gtk_events_pending/gtk_main_iteration does) from a second thread. I
can't promise this is the problem, but that looks extremely shady to me.
- Michael
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]