🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
PilotPipeServer.hpp
浏览该文件的文档.
1
19
20
#pragma once
21
22
#include "AstGlobal.h"
23
#include <string>
24
#include <atomic>
25
#include <thread>
26
27
AST_NAMESPACE_BEGIN
28
29
class
PilotCommander;
30
40
class
AST_UIPILOT_API
PilotPipeServer
41
{
42
public
:
46
explicit
PilotPipeServer
(
PilotCommander
* commander,
unsigned
long
pid);
47
49
~PilotPipeServer
();
50
52
void
start();
53
55
void
stop();
56
58
bool
isRunning
()
const
{
return
running_; }
59
61
static
std::string pipeName(
unsigned
long
pid);
62
63
private
:
65
void
serverLoop();
66
67
PilotCommander
* commander_;
68
unsigned
long
pid_;
69
std::atomic<bool> running_{
false
};
70
std::thread serverThread_;
71
};
72
75
AST_NAMESPACE_END
ast::PilotCommander
命令调度器
定义
PilotCommander.hpp:44
ast::PilotPipeServer
Named Pipe 服务端
定义
PilotPipeServer.hpp:41
ast::PilotPipeServer::isRunning
bool isRunning() const
是否正在运行
定义
PilotPipeServer.hpp:58
src
AstUiPilot
PilotPipeServer.hpp
制作者
1.12.0