Message17885
Logged In: YES
user_id=50945
Also, how would 'someThread.join()' work if threads could be
restarted?
The current situation seems fine to me -- I can't think of a
use-case for this that isn't satisfied by either having an
idiomatic worker thread, or just simply creating a
completely new thread.
Presumably the rationale for wanting restartable threads is
performance, i.e. avoiding setup/teardown costs of threads
-- but this goal is better served by typical worker threads
blocking on a Queue.Queue anyway, i.e.:
def worker(queue):
while 1:
job = queue.get()
# ...
q = Queue.Queue()
t = threading.Thread(target=worker)
In my opinion, the current situation is fine and this
proposal isn't carefully thought out, so thsi bug can be
resolved as "won't fix".
[I seem to recall a bug very similar to this being rejected,
but I can't find it now] |
|
Date |
User |
Action |
Args |
2007-08-23 14:16:18 | admin | link | issue793687 messages |
2007-08-23 14:16:18 | admin | create | |
|