diff options
author | Justin Santa Barbara <justin@fathomdb.com> | 2010-08-18 22:14:24 +0100 |
---|---|---|
committer | Justin Santa Barbara <justin@fathomdb.com> | 2010-08-18 22:14:24 +0100 |
commit | d8f8d121a00173cb3f5fb5e496cc010dc179cf19 (patch) | |
tree | 79ae8953421d065a13309ae5052a0faaee94b485 /nova/process.py | |
parent | 993563b6cc9db9f24480678cf8b2d0750aee7a92 (diff) | |
parent | 2af3bad97be40c135fb73f2e595e7fda86f17900 (diff) | |
download | nova-d8f8d121a00173cb3f5fb5e496cc010dc179cf19.tar.gz nova-d8f8d121a00173cb3f5fb5e496cc010dc179cf19.tar.xz nova-d8f8d121a00173cb3f5fb5e496cc010dc179cf19.zip |
Merged with trunk
Diffstat (limited to 'nova/process.py')
-rw-r--r-- | nova/process.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/process.py b/nova/process.py index d36de0410..425d9f162 100644 --- a/nova/process.py +++ b/nova/process.py @@ -22,6 +22,7 @@ Process pool, still buggy right now. """ import StringIO + from twisted.internet import defer from twisted.internet import error from twisted.internet import protocol @@ -190,6 +191,7 @@ class ProcessPool(object): self._pool.release() return retval + class SharedPool(object): _instance = None def __init__(self): @@ -198,5 +200,6 @@ class SharedPool(object): def __getattr__(self, key): return getattr(self._instance, key) + def simple_execute(cmd, **kwargs): return SharedPool().simple_execute(cmd, **kwargs) |