[ python-Bugs-1654429 ] thread join() with timeout hangs on Windows 2003 x64
SourceForge.net
noreply at sourceforge.net
Wed Feb 7 19:14:24 CET 2007
Bugs item #1654429, was opened at 2007-02-07 18:14
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1654429&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Threads
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: bentoi (bentoi)
Assigned to: Nobody/Anonymous (nobody)
Summary: thread join() with timeout hangs on Windows 2003 x64
Initial Comment:
If join() is called on a thread which is alive with a timeout, it hangs for the duration of the timeout even if the thread terminated before. This appears to only happen on Windows 2003 x64.
Here's a test case:
---
#!/usr/bin/env python
from threading import Thread
import time
class ReaderThread(Thread):
def __init__(self):
Thread.__init__(self)
def run(self):
print "sleeping"
time.sleep(5)
print "finished sleeping"
thread = ReaderThread()
thread.start()
print "joining..."
thread.join(60)
print "joined"
----
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1654429&group_id=5470
More information about the Python-bugs-list
mailing list