Jason Tackaberry wrote:
R> On 2008-01-17 14:30, Dirk Meyer wrote:
>> Please do. Attached a patch that handles ThreadCallback similar to
>> Thread and Process but adds a __call__ method.
>
> So if I understand this correctly, this doesn't work with nameless
> threads?  So this doesn't merge ThreadCallback and Thread ...

No

> Also are ThreadCallback.register and set_thread() needed to be
> separate? 

I was thinking the same and maybe an extra arg call=True could do the
trick.


> They look roughly the same, except that register() invokes
> itself.  My earlier suggestion is to pass the thread name on the
> constructor, so register/set_thread wouldn't be necessary.
>
>    ThreadCallback('name', somefunc)(arguments)

What about priority?


Dischi

-- 
Just remember, if the world didn't suck, we'd all fall off.

Attachment: pgpXl50qESrYd.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