Jason Tackaberry wrote:
> On 2008-01-17 15:12, Dirk Meyer wrote:
>> What does None do? A thread called None or main?
>
> None will spawn a new thread each time it's called.  It won't use
> jobserver.  It replicates Thread behavior.

So the code will look like

ThreadCallback(object)

MainThreadCallback(ThreadCallback):
    ThreadCallback.__init__('main', ...)

Thread(ThreadCallback):
    ThreadCallback.__init__(None, ...)

While this looks good on one side, the logic behind it is very
different. ThreadCallback needs to connect to a JobServer,
MainThreadCallback needs to be called from the mainloop with wakeup
and async blocking result and Thread needs to start and join a new
Thread.

I'm not sure it is worth the work to try to fit these into one base
class.



Dischi


-- 
Hidden DOS secret: add BUGS=OFF to your CONFIG.SYS

Attachment: pgpMgXJLOjKe4.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to