1
0
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:
Consolatis
2021-10-05 02:19:44 +02:00
parent ef87230acc
commit a869854777

2
lxc.c
View File

@@ -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