Re: Messages between threads ?



On Fri, Dec 20, 2002 at 06:24:35PM +0100, Nils O. Sel?sdal wrote:
> I need to bas messages from one thread to another, which is running
> a glib mainloop. The async queue seem almost fine, but I need to 
> pass the messages in the main loop, since that thread is also waiting
> for GIOChannels. 
> Am I right that about the only way of doing that is pass the message
> over e.g. a pipe, or pass a notification over a pipe that an item is
> available from another thread ? Or is there some other clever way ?

I've done something like that. Look at

cvs -z3 -d:pserver:anonymous kolos math uni lodz pl:/home/cvsroot get duskc

files src/glibmisc.{h,c}

Functions th2mloop*()

bajcik
-- 
.----- Krzysztof Garus ----- http://kolos.math.uni.lodz.pl/~bajcik/ --.
| http://kolos.math.uni.lodz.pl/~bajcik/duskc/ - proszę o krytykę :)  |



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]