[Twisted-Python] threading on windows?

Itamar twisted at itamarst.org
Tue Aug 21 18:14:16 EDT 2001


Sean Riley wrote:

> threaded initialization stuff twisted.internet.main.py is not working for me
> on windows.
> 
> I propose we put all threaded initialization into a method of
> twisted.internet.main and have it called from threadable.init() in one
> place.



Yes, but threaded can be used without internet.main's event loop, so it shouldn't depend on it.


 
> This would include:
> 	installWaker()
> 	delayeds.append(threadtask.theScheduler)
> 
> how about internet.main.enableThreading() which would do the work that is
> currently in installWaker and set up the delayed scheduler?


note that threading has to be initialized before threadtask is imported, 
so that it will be synchronized.


Can you explain why the current code doesn't work in Windows?






More information about the Twisted-Python mailing list