mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-07 11:27:50 +08:00
修复gil线程安全bug
This commit is contained in:
parent
b4a0e6bdd6
commit
2ce5e97efb
@ -228,6 +228,7 @@ PythonInvoker::PythonInvoker() {
|
||||
_rel = new py::gil_scoped_release;
|
||||
|
||||
NoticeCenter::Instance().addListener(this, Broadcast::kBroadcastReloadConfig, [this] (BroadcastReloadConfigArgs) {
|
||||
py::gil_scoped_acquire guard;
|
||||
if (_on_reload_config) {
|
||||
_on_reload_config();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user