Threading / Queue management
Hendrik van Rooyen
mail at microcorp.co.za
Tue Feb 3 02:31:37 EST 2009
"Power Button" <mjbuchan at gmail.com>
> My question is, how can I create the Queue in my main object and set
> the target function for the Thread Constructor to be a function in
> foo?
Just create it, giving it some name.
Then start the static long running stuff,
and pass the name you gave it.
Pass the name to the thing that starts the
per transaction thread, so that it can pass
it to the new thread, and away you go.
You may even need an output queue, so that
the static long running stuff knows what to do
with the results, and a thread to handle the
final output.
- Hendrik
More information about the Python-list
mailing list