Re: Threading

* Jens Luedicke <jens luedicke gmail com> [2006-08-06 21:40]:
any hints?

The simplest (in some way) is if you can peform your long task
piecemeal. Then just do it bit by bit in an idle callback.

Another option might be to fork off a child process to perform
the heavy-duty work and have the parent listen to the child on a
pipe. You can have Glib take care of the asynchronicity for you
by sticking the processing code in an I/O watcher callback.

Aristotle Pagaltzis // <>

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