Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
colorEagleStdio
taskbus
提交
4dab5e88
taskbus
项目概览
colorEagleStdio
/
taskbus
通知
159
Star
11
Fork
3
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
taskbus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4dab5e88
编写于
9月 11, 2022
作者:
D
dev@dev.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
配合修改,添加全局的批量消息发送频繁程度控制参数batchtime
上级
4f7fdb01
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
3 deletion
+14
-3
taskbusplatform/core/taskcell.cpp
taskbusplatform/core/taskcell.cpp
+6
-3
taskbusplatform/core/taskcell.h
taskbusplatform/core/taskcell.h
+2
-0
taskbusplatform/core/tasknode.cpp
taskbusplatform/core/tasknode.cpp
+2
-0
taskbusplatform/core/taskproject.cpp
taskbusplatform/core/taskproject.cpp
+4
-0
未找到文件。
taskbusplatform/core/taskcell.cpp
浏览文件 @
4dab5e88
...
...
@@ -19,6 +19,9 @@
#include <QMimeData>
#include <QDataStream>
#include <QRegularExpression>
int
taskCell
::
default_batchtime
=
10
;
taskCell
::
taskCell
()
{
...
...
@@ -372,11 +375,11 @@ unsigned int taskCell::set_function_instance(const QString & func,
unsigned
int
taskCell
::
function_batchtime
(
const
QString
&
func
)
const
{
if
(
m_mainBlock
.
contains
(
func
)
==
false
)
return
10
;
return
default_batchtime
;
if
(
m_mainBlock
[
func
].
contains
(
"instance"
)
==
false
)
return
10
;
return
default_batchtime
;
if
(
m_mainBlock
[
func
][
"instance"
].
contains
(
"batchtime"
)
==
false
)
return
10
;
return
default_batchtime
;
return
m_mainBlock
[
func
][
"instance"
][
"batchtime"
].
toUInt
();
}
//设置模块批次间隔 Set the module batch time
...
...
taskbusplatform/core/taskcell.h
浏览文件 @
4dab5e88
...
...
@@ -45,6 +45,8 @@ public:
taskCell
();
virtual
~
taskCell
();
const
QSet
<
QString
>
&
full_paths
()
const
{
return
m_set_fullpaths
;}
//默认的批量推送时间
static
int
default_batchtime
;
protected:
/*!
* \brief m_mainBlock主结构:功能键、大类、属性键、属性值
...
...
taskbusplatform/core/tasknode.cpp
浏览文件 @
4dab5e88
...
...
@@ -17,6 +17,7 @@
taskNode
::
taskNode
(
QObject
*
parent
)
:
QObject
(
parent
)
,
m_process
(
new
QProcess
(
this
))
,
m_nBatchTime
(
taskCell
::
default_batchtime
)
{
connect
(
m_process
,
&
QProcess
::
started
,
this
,
&
taskNode
::
sig_pro_started
,
Qt
::
QueuedConnection
);
...
...
@@ -39,6 +40,7 @@ taskNode::taskNode(QObject *parent)
connect
(
this
,
&
taskNode
::
private_sig_nextcab
,
this
,
&
taskNode
::
slot_readyReadStandardOutput
,
Qt
::
QueuedConnection
);
m_nBp_TimerID
=
startTimer
(
200
);
}
taskNode
::~
taskNode
()
{
...
...
taskbusplatform/core/taskproject.cpp
浏览文件 @
4dab5e88
...
...
@@ -780,6 +780,10 @@ void taskProject::start_project()
TASKBUS
::
set_proc_nice
(
pr
);
settings
.
setValue
(
"settings/nice"
,
pr
);
int
bt
=
settings
.
value
(
"settings/batchtime"
,
taskCell
::
default_batchtime
).
toInt
();
taskCell
::
default_batchtime
=
bt
;
settings
.
setValue
(
"settings/batchtime"
,
taskCell
::
default_batchtime
);
if
(
m_bRunning
)
return
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录