Hi all,
I'm trying to figure out a threading issue, I'm trying to create a
commandWatcher that will watch the time left status and report back
this value. So whatever is on the GUI is 100% accurate.

However I'm currently querying all the telnet watchers every 0.1s, as
with threading some emissions from the query object are arriving back
sooner than those dispatcher earlier.
So we get this sort of problem:
123.29
123.41
123.70
123.82
121.59
121.74
121.97
122.10

It's within the most recent version of the pygtk interface, I've tried
applying a lock but it doesn't seem to make a difference. I think
taking an approach of running a condition of if it's less than the
previous result  would be sloppy as we'd spend 3/4 of the time dealing
with discarded emissions.

I want to within threads.py in _commandWatcher to be able to only run
the query once the last call has finished.

Cheers

-- 
Peter Brooks

Répondre à