On Feb 25, 9:30 pm, [EMAIL PROTECTED] wrote:
>
> Is it enough?

(Reminds me of the movie Marathon Man, in which Dustin Hoffman is
repeatedly asked by Laurence Olivier, "Is it safe?"  Hoffman had no
idea what Olivier was talking about.  So Olivier tortured Hoffman some
more to get the answer.)

Enough for what?

Is "th" short for "thread"?  Maybe a little too short - try "thd" at
least, and spelling out "thread" isn't out of the question.

What happened to step[0]?  Did you know that lists start at 0?  Why
are you using a list of synchronization objects?

You would be better off using attributes of th with meaningful names,
instead of elements of a generically named list attribute, "th.step".
Names like "th.assign_command_synch", "th.return_value_synch", etc.
And since there is no synch object that is locked in both methods,
then the methods will run completely devoid of any synchronization.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to