On Sun, 2007-03-11 at 17:07 +0100, Dirk Meyer wrote:
> + def add_program_wait(self):
> + """
> + Wait until add_program is finished. This function can only be called
> + from a thread.
> + """
> + if kaa.notifier.is_mainthread():
> + raise RuntimeError('add_program_wait not called by thread')
> + while self._jobs:
> + time.sleep(0.1)
Why not use a mutex instead of looping/waking every .1s?
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel