Skip to content
GitLab
探索
项目
群组
代码片段
项目
群组
代码片段
/
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录
切换导航
菜单
打开侧边栏
wazuh
Osquery
提交
a87db995
未验证
提交
a87db995
编辑于
6年前
作者:
Giorgi Guliashvili
提交者:
GitHub
6年前
浏览文件
操作
下载
电子邮件补丁
差异文件
memory leak resolve for dispatcher (#4597)
上级
f9e60dbb
master
build_aarch64_run_tests
experimental
release/v5.2.3
5.3.0
5.2.3
5.2.2
5.2.1
5.2.0
5.1.0
5.0.1
5.0.0
4.9.0
4.8.0
4.7.0
4.6.0
4.5.1
4.5.0
4.4.0
4.3.0
4.2.0
4.1.2
4.1.1
4.1.0
4.0.2
4.0.1
4.0.0
3.4.0
3.3.2
3.3.1
3.3.0
3.2.9
无相关合并请求
变更
2
隐藏空白变更内容
行内
左右并排
显示
2 个更改的文件
include/osquery/dispatcher.h
+1
-1
include/osquery/dispatcher.h
osquery/dispatcher/dispatcher.cpp
+1
-1
osquery/dispatcher/dispatcher.cpp
有
2 个添加
和
2 个删除
+2
-2
include/osquery/dispatcher.h
+
1
-
1
浏览文件 @
a87db995
...
...
@@ -115,7 +115,7 @@ class InternalRunnable : private boost::noncopyable,
/// An internal runnable used throughout osquery as dispatcher services.
using
InternalRunnableRef
=
std
::
shared_ptr
<
InternalRunnable
>
;
using
InternalThreadRef
=
std
::
unique
_ptr
<
std
::
thread
>
;
using
InternalThreadRef
=
std
::
shared
_ptr
<
std
::
thread
>
;
/**
* @brief Singleton for queuing asynchronous tasks to be executed in parallel
...
...
This diff is collapsed.
Click to expand it.
osquery/dispatcher/dispatcher.cpp
+
1
-
1
浏览文件 @
a87db995
...
...
@@ -75,7 +75,7 @@ Status Dispatcher::addService(InternalRunnableRef service) {
return
Status
(
1
,
"Cannot add service, dispatcher is stopping"
);
}
auto
thread
=
std
::
make_
unique
<
std
::
thread
>
(
auto
thread
=
std
::
make_
shared
<
std
::
thread
>
(
std
::
bind
(
&
InternalRunnable
::
run
,
&*
service
));
DLOG
(
INFO
)
<<
"Adding new service: "
<<
service
->
name
()
<<
" ("
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
支持
Markdown
0%
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
菜单
探索
项目
群组
代码片段