Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
colorEagleStdio
zoompipeline
提交
b866662b
zoompipeline
项目概览
colorEagleStdio
/
zoompipeline
通知
181
Star
12
Fork
4
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
zoompipeline
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b866662b
编写于
4月 23, 2014
作者:
丁劲犇
😸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add cross-Svr nodes
上级
ac5abc4b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
49 addition
and
2 deletion
+49
-2
ZoomPipeline_FuncSvr/ZoomPipeline_FuncSvr.pro
ZoomPipeline_FuncSvr/ZoomPipeline_FuncSvr.pro
+4
-2
ZoomPipeline_FuncSvr/cluster/zp_clusternode.cpp
ZoomPipeline_FuncSvr/cluster/zp_clusternode.cpp
+11
-0
ZoomPipeline_FuncSvr/cluster/zp_clusternode.h
ZoomPipeline_FuncSvr/cluster/zp_clusternode.h
+24
-0
ZoomPipeline_FuncSvr/pipeline/zp_pltaskbase.h
ZoomPipeline_FuncSvr/pipeline/zp_pltaskbase.h
+10
-0
未找到文件。
ZoomPipeline_FuncSvr/ZoomPipeline_FuncSvr.pro
浏览文件 @
b866662b
...
...
@@ -27,7 +27,8 @@ SOURCES += main.cpp\
smartlink
/
st_clientnode_app_imp
.
cpp
\
smartlink
/
st_clientnode_applayer
.
cpp
\
cluster
/
zp_clusterterm
.
cpp
\
dialogaddressinput
.
cpp
dialogaddressinput
.
cpp
\
cluster
/
zp_clusternode
.
cpp
HEADERS
+=
zpmainframe
.
h
\
network
/
zp_tcpserver
.
h
\
...
...
@@ -45,7 +46,8 @@ HEADERS += zpmainframe.h \
smartlink
/
st_clientnode_applayer
.
h
\
cluster
/
zp_clusterterm
.
h
\
cluster
/
cross_svr_messages
.
h
\
dialogaddressinput
.
h
dialogaddressinput
.
h
\
cluster
/
zp_clusternode
.
h
FORMS
+=
zpmainframe
.
ui
\
dialogaddressinput
.
ui
...
...
ZoomPipeline_FuncSvr/cluster/zp_clusternode.cpp
0 → 100644
浏览文件 @
b866662b
#include "zp_clusternode.h"
namespace
ZP_Cluster
{
zp_ClusterNode
::
zp_ClusterNode
(
QObject
*
parent
)
:
ZPTaskEngine
::
zp_plTaskBase
(
parent
)
{
}
int
zp_ClusterNode
::
run
()
{
return
0
;
}
}
ZoomPipeline_FuncSvr/cluster/zp_clusternode.h
0 → 100644
浏览文件 @
b866662b
#ifndef ZP_CLUSTERNODE_H
#define ZP_CLUSTERNODE_H
#include <QObject>
#include "../pipeline/zp_pltaskbase.h"
namespace
ZP_Cluster
{
/**
* @brief This class stand for a remote server.
* when local server establish a connection between itself and remote svr,
* a zp_ClusterNode object will be created.
*/
class
zp_ClusterNode
:
public
ZPTaskEngine
::
zp_plTaskBase
{
Q_OBJECT
public:
explicit
zp_ClusterNode
(
QObject
*
parent
=
0
);
int
run
();
signals:
public
slots
:
};
}
#endif // ZP_CLUSTERNODE_H
ZoomPipeline_FuncSvr/pipeline/zp_pltaskbase.h
浏览文件 @
b866662b
...
...
@@ -5,12 +5,22 @@
#include <QMutex>
#include <QMutexLocker>
namespace
ZPTaskEngine
{
/**
* @brief the pure-base class for tasks , will be called by zp_plWorkingThread
* Users will imp your own int zp_plTaskBase::run() function.
*/
class
zp_plTaskBase
:
public
QObject
{
Q_OBJECT
public:
explicit
zp_plTaskBase
(
QObject
*
parent
=
0
);
/**
* @brief the virtual function called by zp_plWorkingThread
* this function will be called in thread pool
* @return int 0 means this object will be removed from pipeline-fifo. otherwise,
* when run() finished, the object will be re-injected into the tail of task-fifo.
*/
virtual
int
run
()
=
0
;
int
addRef
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录