Skip to content

Commit daae973

Browse files
committed
Try to release the GIL
1 parent ea2edbd commit daae973

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/clib/lib/job_queue/job_node.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,9 @@ ERT_CLIB_SUBMODULE("queue", m) {
265265
using namespace py::literals;
266266
m.def("_refresh_status", [](Cwrap<job_queue_node_type> node,
267267
Cwrap<queue_driver_type> driver) {
268+
// release the GIL
269+
py::gil_scoped_release release;
270+
268271
pthread_mutex_lock(&node->data_mutex);
269272
job_status_type current_status = job_queue_node_get_status(node);
270273

0 commit comments

Comments
 (0)