Jason Tackaberry wrote:
> 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?Because it was easier that way :) The threading in Python is a bit strange, I never came to this part of the code during testing. Dischi -- In the beginning was the word, and the word was content-type: text/plain
pgpwqLe4aplDF.pgp
Description: PGP signature
------------------------------------------------------------------------- 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
