On Tue, 2007-02-27 at 18:03 +0100, Dirk Meyer wrote: > or even simpler: > > | @kaa.notifier.execute_in_mainloop() > | def add_channel(self, tuner_id, name, long_name):
This is still magical to me. :) > And a new add_program will work in a queue: > > | def add_program(self, channel_db_id, start, stop, title, **attributes): > | if not kaa.notifier.is_mainthread: > | while len(program_queue) > 100: > | time.sleep(0.1) > | program_queue.append(...) > | wakeup(program_queue_poll) > | return > | current code What does the wakeup() call do? From what I can see wakeup() doesn't take any arguments. (Maybe we should rename this to wake_mainthread() just to be more explicit?) ------------------------------------------------------------------------- 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
