[Python-bugs-list] [ python-Bugs-539990 ] Framework.mainloop() - multiple threads
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 05 Apr 2002 13:29:52 -0800
Bugs item #539990, was opened at 2002-04-05 23:29
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=539990&group_id=5470
Category: Macintosh
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Pieter Claerhout (pclaerhout)
Assigned to: Jack Jansen (jackjansen)
Summary: Framework.mainloop() - multiple threads
Initial Comment:
I tried to use the threading module to start the XML
RPC server in a different thread (xmlrpcServer itself
also is a threaded piece of code), but that seems to
conflict with the mainloop. If you start this
application, it starts the thread, starts the mainloop
and stays in there, once you finish the mainloop, the
thread continues.
You've stumbled on a bug in Framework.mainloop(): it
doesn't know anything about multiple threads. It gives
time to other applications (by calling WaitNextEvent)
but not to other threads within Python.
Also see
http://mail.python.org/pipermail/pythonmac-sig/2002-
April/005416.html
and
http://mail.python.org/pipermail/pythonmac-sig/2002-
April/005428.html
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=539990&group_id=5470