Re: SwingWorker like interface in glib main loop?

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

 



John Hobbs wrote:> You can do the "open" with> http://library.gnome.org/devel/glib/stable/glib-IO-Channels.html#g-io-channel-new-file> and you can do that async with the> http://library.gnome.org/devel/glib/stable/glib-IO-Channels.html#g-io-channel-set-flags> as Chris mentioned.
I think you did not understand me.
What I want to do is calling open() asynchronously.(I do not mean to open() a file and set O_NONBLOCK or O_NDELAY on it)The problem is that the open() call can block because it has to lookup the fileand if the filesystem is NFS over a slow line it can take enough time to block the GUI.
Do you guys will accept patches to the documentation to let people know what functionscan block and should be called from another thread?

> On Tue, Sep 9, 2008 at 9:42 AM, Tor Lillqvist <tml@xxxxxx> wrote:> >> Do you guys think a simple API like SwingWorker could be integrated in glib?> > Show us how the GLib API would look, and then if nobody opposes> > violently, volunteer to write the code and maintain it at least for> > one release cycle. Pointing at the Wikipedia page describing the Java> > API of SwingWorker is not enough.
I will try to do it.


Ahora también puedes acceder a tu correo Terra desde el móvil.Infórmate pinchando aquí.

_______________________________________________gtk-list mailing listgtk-list@xxxxxxxxxxxxx://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