mirror of
https://github.com/lxc/python3-lxc.git
synced 2026-02-05 18:48:46 +01:00
Unlock GIL while creating container
Signed-off-by: Consolatis <35009135+Consolatis@users.noreply.github.com>
This commit is contained in:
2
lxc.c
2
lxc.c
@@ -939,11 +939,13 @@ Container_create(Container *self, PyObject *args, PyObject *kwds)
|
||||
}
|
||||
}
|
||||
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
if (self->container->create(self->container, template_name, bdevtype, &fs_specs,
|
||||
flags, create_args))
|
||||
retval = Py_True;
|
||||
else
|
||||
retval = Py_False;
|
||||
Py_END_ALLOW_THREADS
|
||||
|
||||
if (vargs) {
|
||||
/* We cannot have gotten here unless vargs was given and create_args
|
||||
|
||||
Reference in New Issue
Block a user