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