]> git.ipfire.org Git - pakfire.git/commit
python: ctx: Ensure we are holding the GIL
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Mar 2025 17:57:39 +0000 (17:57 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Mar 2025 17:57:39 +0000 (17:57 +0000)
commit2a7fb447b658a9f52703f96652919176aa24264b
tree8b6a5b404a54ff8cd744ddb8bd020246825bc1b3
parentec56016302cde500ff27f8d2263a06929e0d3871
python: ctx: Ensure we are holding the GIL

This is required because we usally return the GIL when we are jumping
into Pakfire functions as these tend to take some time when running.

When we are jumping back into the Python code, we need to acquire the
GIL again.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/ctx.c