Threaded Design Question
greg
greg at cosc.canterbury.ac.nz
Sat Aug 11 02:05:57 EDT 2007
half.italian at gmail.com wrote:
> I ended up taking this route for the most part. The worker thread
> first moves the file to be processed into a temp directory,
No, the watcher thread should do this itself *before*
putting it into the work queue. Then there's no chance
of it picking up the same file twice before a worker
has gotten around to working on it, and there is no
need for a custom queue class.
--
Greg
More information about the Python-list
mailing list