Rob Shortt wrote: > I agree, threading is a PITA, I dislike them too. I would like to see > Freevo get rid of all multi-threading.
Maybe, maybe not. I just had a little talk with a co-worker who wrote a notifier loop for Python. And Freevo can't use this loop and neither can use twisted for a very simple reason: a main loop like this requires that the called function returns very quick. This is not true for a directory building: create mmpython cache, build the item list, show the skin. Each of this three steps can take a long time. For a very big directory of photos and a fully cached Freevo, I still need about 3 seconds to display the folder. That is too much. Maybe we need some sort of safe threading for long time jobs like this. Example: mmpython cache this dir and call be back when you are finished. This can be done in a thread. Maybe must be done. My co-worker (also using Freevo) will look at our main loop and try to find some solutions. After that, I guess we need some bottles of good wine to design a main loop with threads for long calculations. Dischi -- /* Nobody will ever see this message :-) */ panic("Cannot initialize video hardware\n"); 2.0.38 /usr/src/linux/arch/m68k/atari/atafb.c ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel