Re: g_spawn_async in win32
- From: Vivien Malerba <vmalerba gmail com>
- To: r <alblas3 xs4all nl>
- Cc: "gtk-list gnome org" <gtk-list gnome org>
- Subject: Re: g_spawn_async in win32
- Date: Mon, 29 Jun 2009 17:48:53 +0200
2009/6/29 r
<alblas3 xs4all nl>
Hi,
I have a gtk program doing now and then a calculation taking a few secs.
To prevent freezing my appl. I want to use for Linux g_thread.
However, this is not supported for Windows in combination with gtk.
No, what is apparently not supported on Win32 is manipulating GTK+ objects from several threads at once. What you can do is have one thread for all the UI (GTK+ objects) and one or more threads for the calculation task(s) and use some thread safe communication mechanisms between the UI thread and the worker thread(s).
Regards,
Vivien
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]