From aa2e2135f7d04d526ef12c885d9b57712cc2b079 Mon Sep 17 00:00:00 2001 From: Eric Windisch Date: Sun, 4 Nov 2012 23:01:54 -0500 Subject: Use spawn_n when not capturing return value If not capturing the return value, spawn_n is more efficient. Change-Id: Ie6baa934e81e17e2d73f70766628d4bc97b7aa5e --- openstack/common/loopingcall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openstack/common/loopingcall.py') diff --git a/openstack/common/loopingcall.py b/openstack/common/loopingcall.py index ede3dae..ab576d6 100644 --- a/openstack/common/loopingcall.py +++ b/openstack/common/loopingcall.py @@ -78,7 +78,7 @@ class LoopingCall(object): self.done = done - greenthread.spawn(_inner) + greenthread.spawn_n(_inner) return self.done def stop(self): -- cgit