Exemplo n.º 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
Exemplo n.º 2
0
Arquivo: signals.py Projeto: 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
Exemplo n.º 3
0
def dispatchAll():
	if idle_loop.empty(): return False
	while not idle_loop.empty():
		c=idle_loop.get()
		c()
	return True
Exemplo n.º 4
0
Arquivo: signals.py Projeto: tommo/gii
def dispatchAll():
	if idle_loop.empty(): return False
	while not idle_loop.empty():
		c=idle_loop.get()
		c()
	return True