Re: multithreading problem.
- From: Paul Davis <pbd op net>
- To: Robert Walker <bob step polymtl ca>
- Cc: gtk-list gnome org
- Subject: Re: multithreading problem.
- Date: Tue, 04 Jun 2002 16:23:10 -0400
>I guess I am going to give the second approach a try. A simple pipe should
>do the job but is there any message system in gtk/glib/gdk that
>should be used (user defined signals ?) ?
no, there isn't. just use gtk_input_add, or these days, g_input_add or
whatever its called, so that you can monitor the pipe from the GUI
main event loop. you have a choice of delivering entire messages via
the pipe, or just a single byte to tell the GUI thread to look at a
message queue. which one works better depends on the other design
goals of your program.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]