Is Queue.Queue.queue.clear() thread-safe?
Fredrik Lundh
fredrik at pythonware.com
Thu Jun 22 17:48:35 EDT 2006
More information about the Python-list mailing list
Thu Jun 22 17:48:35 EDT 2006
- Previous message (by thread): Is Queue.Queue.queue.clear() thread-safe?
- Next message (by thread): Is Queue.Queue.queue.clear() thread-safe?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Tim Peters wrote: >> I'm guessing no, since it skips down through any Lock semantics, > > Good guess :-) It's also unsafe because some internal conditions must > be notified whenever the queue becomes empty (else you risk deadlock). "also" ? if it weren't for the other things, the clear() call itself would have been atomic enough, right ? </F>
- Previous message (by thread): Is Queue.Queue.queue.clear() thread-safe?
- Next message (by thread): Is Queue.Queue.queue.clear() thread-safe?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list