Sleep more , save more.
This commit is contained in:
parent
3eea6d6a88
commit
e8eaf65f07
|
@ -2938,7 +2938,7 @@ else:
|
||||||
while app.hasPendingEvents():
|
while app.hasPendingEvents():
|
||||||
app.processEvents()
|
app.processEvents()
|
||||||
gevent.sleep()
|
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():
|
def testprint():
|
||||||
#print 'this is running'
|
#print 'this is running'
|
||||||
gevent.spawn_later(1, testprint)
|
gevent.spawn_later(1, testprint)
|
||||||
|
|
Reference in New Issue
Block a user