[Twisted-Python] Patch to internet.main
Itamar
twisted at itamarst.org
Mon Aug 13 14:11:06 EDT 2001
This makes the threaded scheduler work, if we are running in threaded mode:
Index: twisted/internet/main.py
===================================================================
RCS file: /cvs/Twisted/twisted/internet/main.py,v
retrieving revision 1.13
diff -c -r1.13 main.py
*** twisted/internet/main.py 2001/08/10 06:38:06 1.13
--- twisted/internet/main.py 2001/08/13 18:13:00
***************
*** 22,28 ****
# Sibling Imports
! import task, tcp
class Application(log.Logger):
running = 0
--- 22,28 ----
# Sibling Imports
! import task, threadtask, tcp
class Application(log.Logger):
running = 0
***************
*** 135,140 ****
--- 135,142 ----
writes = {}
running = None
delayeds = [task.theScheduler]
+ if threadable.threaded:
+ delayeds.append(threadtask.theScheduler)
shutdowns = []
def shutDown(a=None, b=None):
More information about the Twisted-Python
mailing list