Re: how to to put windows HANDLE into a GPollFD

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

 



> I am trying to use windows anonymous read pipe with gtk and need to put HANLE
> into GPollFD. How do I do that?

You can use _get_osfhandle() (declared in <io.h>) to get the Windows
HANDLE for a C library file descriptor (for instance an anonymous pipe
end). But that doesn't help much, as anonymous pipe handles, or file
handles in general, are not waitable objects, so it doesn't work to
watch such handles with GLib functionality. (Yeah, sorry, I gave
misleading advice in another thread about that.) That's why GLib uses
a separate thread per file descriptor being watched.

--tml
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux