Exemple #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
Exemple #2
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
Exemple #3
0
def dispatchAll():
	if idle_loop.empty(): return False
	while not idle_loop.empty():
		c=idle_loop.get()
		c()
	return True
Exemple #4
0
def dispatchAll():
	if idle_loop.empty(): return False
	while not idle_loop.empty():
		c=idle_loop.get()
		c()
	return True