Re: How to handle long I/O operations



On Mon, 13 Aug 2001 23:37:43 +0200, Markus Lausser said:

 The disadvantage of this solutions is:
 * if the working callback needs more time than you have specified for the
   gtk timeout then your application will freeze.

Are you sure?  I've used this approach on a raytracer and never
had anything freeze.


 I have implemented such a thing to move files from one location to another.
 It simply uses the gtk_idle_add function. The only difference is that the
 working function is not called every X mseconds but if there is time to do
 that.

Are you suggesting gtk_idle_add instead?  If so that's what I suggested
later on too.


-- 
--
Sincerely,                  ,"-_                         \|/
-Capt. Taura M.             ,   O=__                    --X--
.__                          ,_JNMNNEO=_                 /|\
OMNOUMmnne.                  {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.               'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe              '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.                "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.             __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn            "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                  http://furry.ao.net/~learfox/






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