Re: gdk_io_* clarification




James Macnicol <jamesm@evans.ee.adfa.oz.au> writes:

> Okay folks, here's some code that will trigger the behaviour I see.  This
> has only been tested on Solaris 7, YMMV on other platforms.
> 
> Explanation follows code.

[...]
 
> #ifndef WORKS
>     gdk_input_remove(tag);
>     gdk_input_add_full(fd, GDK_INPUT_READ, ioready, NULL,
>                        dnotify);
> #endif
>     gdk_input_remove(tag);
>     gdk_input_add_full(fd, GDK_INPUT_READ|GDK_INPUT_WRITE, ioready, NULL,
>                        dnotify);

Suprisingly enough, this actually works fine for me.

But I wouldn't expect it to with two calls to 
gdk_input_remove() on the same tag. (that would cause
messed up refcounts for sure...)

Is that from the original, or is that a red herring?

                                        Owen







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