Re: SwingWorker like interface in glib main loop?

John Hobbs wrote:
> You can do the "open" with
> and you can do that async with the
> 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 file
and 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 functions
can block and should be called from another thread?

> On Tue, Sep 9, 2008 at 9:42 AM, Tor Lillqvist <tml iki fi> 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í.

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