diff options
Diffstat (limited to 'nova/utils.py')
-rw-r--r-- | nova/utils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/utils.py b/nova/utils.py index ed26d006f2..e2d9d5e657 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -698,6 +698,11 @@ def spawn_n(func, *args, **kwargs): eventlet.spawn_n(context_wrapper, *args, **kwargs) +def tpool_execute(func, *args, **kwargs): + """Run func in a native thread""" + eventlet.tpool.execute(func, *args, **kwargs) + + def is_none_string(val): """Check if a string represents a None value. """ |