On 03/05/2012 08:30 PM, Adam Young wrote:
The only time sleep() as called from Python code is going to help you is
if you have a long running stretch of Python code, and you sleep() in
the middle of it.

That's exactly where the greenthread.sleep(0) call in question was used: inside a (potentially) long-running loop in _sync_power_states()...

Best,
-jay

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp

Reply via email to