Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
colorEagleStdio
taskbus
提交
4ec4c9d4
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 搜索 >>
提交
4ec4c9d4
编写于
6月 27, 2023
作者:
丁劲犇
😸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
为同一线程的connect使用默认连接
上级
c3b50c3f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
10 deletion
+6
-10
taskbusplatform/core/tasknode.cpp
taskbusplatform/core/tasknode.cpp
+6
-8
taskbusplatform/core/tasknode.h
taskbusplatform/core/tasknode.h
+0
-2
未找到文件。
taskbusplatform/core/tasknode.cpp
浏览文件 @
4ec4c9d4
...
@@ -21,25 +21,23 @@ taskNode::taskNode(QObject *parent)
...
@@ -21,25 +21,23 @@ taskNode::taskNode(QObject *parent)
,
m_nBatchTime
(
taskCell
::
default_batchtime
)
,
m_nBatchTime
(
taskCell
::
default_batchtime
)
{
{
connect
(
m_process
,
&
QProcess
::
started
,
this
,
connect
(
m_process
,
&
QProcess
::
started
,
this
,
&
taskNode
::
sig_pro_started
,
Qt
::
QueuedConnection
);
&
taskNode
::
sig_pro_started
/*,Qt::QueuedConnection*/
);
connect
(
m_process
,
&
QProcess
::
started
,
this
,
connect
(
m_process
,
&
QProcess
::
started
,
this
,
&
taskNode
::
slot_started
,
Qt
::
QueuedConnection
);
&
taskNode
::
slot_started
/*,Qt::QueuedConnection*/
);
connect
(
m_process
,
connect
(
m_process
,
static_cast
<
void
(
QProcess
::*
)(
int
,
QProcess
::
ExitStatus
)
>
static_cast
<
void
(
QProcess
::*
)(
int
,
QProcess
::
ExitStatus
)
>
(
&
QProcess
::
finished
),
(
&
QProcess
::
finished
),
this
,
&
taskNode
::
sig_pro_stopped
,
Qt
::
QueuedConnection
);
this
,
&
taskNode
::
sig_pro_stopped
/*,Qt::QueuedConnection*/
);
connect
(
m_process
,
connect
(
m_process
,
static_cast
<
void
(
QProcess
::*
)(
int
,
QProcess
::
ExitStatus
)
>
static_cast
<
void
(
QProcess
::*
)(
int
,
QProcess
::
ExitStatus
)
>
(
&
QProcess
::
finished
),
(
&
QProcess
::
finished
),
this
,
&
taskNode
::
slot_stopped
,
Qt
::
QueuedConnection
);
this
,
&
taskNode
::
slot_stopped
/*,Qt::QueuedConnection*/
);
connect
(
m_process
,
&
QProcess
::
readyReadStandardOutput
,
this
,
connect
(
m_process
,
&
QProcess
::
readyReadStandardOutput
,
this
,
&
taskNode
::
slot_readyReadStandardOutput
,
Qt
::
QueuedConnection
);
&
taskNode
::
slot_readyReadStandardOutput
/*,Qt::QueuedConnection*/
);
connect
(
m_process
,
&
QProcess
::
readyReadStandardError
,
this
,
connect
(
m_process
,
&
QProcess
::
readyReadStandardError
,
this
,
&
taskNode
::
slot_readyReadStandardError
,
Qt
::
QueuedConnection
);
&
taskNode
::
slot_readyReadStandardError
/*,Qt::QueuedConnection*/
);
connect
(
m_process
,
&
QProcess
::
bytesWritten
,
this
,
connect
(
m_process
,
&
QProcess
::
bytesWritten
,
this
,
&
taskNode
::
slot_sended
);
&
taskNode
::
slot_sended
);
connect
(
this
,
&
taskNode
::
private_sig_nextcab
,
this
,
&
taskNode
::
slot_readyReadStandardOutput
,
Qt
::
QueuedConnection
);
connect
(
this
,
&
taskNode
::
sig_new_package
,
this
,
&
taskNode
::
slot_write
,
Qt
::
QueuedConnection
);
connect
(
this
,
&
taskNode
::
sig_new_package
,
this
,
&
taskNode
::
slot_write
,
Qt
::
QueuedConnection
);
m_nBp_TimerID
=
startTimer
(
200
);
m_nBp_TimerID
=
startTimer
(
200
);
}
}
...
...
taskbusplatform/core/tasknode.h
浏览文件 @
4ec4c9d4
...
@@ -41,8 +41,6 @@ signals:
...
@@ -41,8 +41,6 @@ signals:
void
sig_new_package
();
void
sig_new_package
();
void
sig_new_errmsg
(
QByteArrayList
);
void
sig_new_errmsg
(
QByteArrayList
);
void
sig_iostat
(
qint64
pid
,
quint64
pr
,
quint64
ps
,
quint64
br
,
quint64
bs
);
void
sig_iostat
(
qint64
pid
,
quint64
pr
,
quint64
ps
,
quint64
br
,
quint64
bs
);
void
private_sig_nextcab
();
void
private_sig_nextwrite
();
public
slots
:
public
slots
:
void
setDebug
(
bool
bdbg
){
m_bDebug
=
bdbg
;}
void
setDebug
(
bool
bdbg
){
m_bDebug
=
bdbg
;}
bool
cmd_start
(
QObject
*
node
,
QString
cmd
,
QStringList
paras
);
bool
cmd_start
(
QObject
*
node
,
QString
cmd
,
QStringList
paras
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录