mirror of
https://github.com/varun-r-mallya/pylibbpf.git
synced 2025-12-31 20:36:26 +00:00
Remove unnecessary GIL acquisition in PerfEventArray
This commit is contained in:
@ -81,7 +81,6 @@ void PerfEventArray::sample_callback_wrapper(void *ctx, int cpu, void *data,
|
||||
} catch (const py::error_already_set &e) {
|
||||
PyErr_Print();
|
||||
} catch (const std::exception &e) {
|
||||
py::gil_scoped_acquire acquire;
|
||||
py::print("C++ error in perf callback:", e.what());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user