Sleep more , save more.

This commit is contained in:
miao.lin 2013-06-28 17:48:32 +08:00
parent 3eea6d6a88
commit e8eaf65f07

View File

@ -2938,7 +2938,7 @@ else:
while app.hasPendingEvents():
app.processEvents()
gevent.sleep()
gevent.sleep() # don't appear to get here but cooperate again
gevent.sleep(0.01) # don't appear to get here but cooperate again
def testprint():
#print 'this is running'
gevent.spawn_later(1, testprint)