示例#1
0
def dispatchPartial( count ):
	if idle_loop.empty(): return False
	while not idle_loop.empty():
		c=idle_loop.get()
		c()
		count -= 1
		if count <= 0: return True
	return True
示例#2
0
文件: signals.py 项目: tommo/gii
def dispatchPartial( count ):
	if idle_loop.empty(): return False
	while not idle_loop.empty():
		c=idle_loop.get()
		c()
		count -= 1
		if count <= 0: return True
	return True
示例#3
0
def dispatchAll():
	if idle_loop.empty(): return False
	while not idle_loop.empty():
		c=idle_loop.get()
		c()
	return True
示例#4
0
文件: signals.py 项目: tommo/gii
def dispatchAll():
	if idle_loop.empty(): return False
	while not idle_loop.empty():
		c=idle_loop.get()
		c()
	return True