Message31211
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"
----
|
|
Date |
User |
Action |
Args |
2007-08-23 14:51:49 | admin | link | issue1654429 messages |
2007-08-23 14:51:49 | admin | create | |
|