We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 323297f commit 2c5c158Copy full SHA for 2c5c158
2 files changed
include/MaaUtils/IOStream/ChildPipeIOStream.h
@@ -31,6 +31,8 @@ class MAA_UTILS_API ChildPipeIOStream : public IOStream
31
virtual bool release() override;
32
virtual bool is_open() const override;
33
34
+ bool running();
35
+
36
protected:
37
virtual std::string read_once(size_t max_count) override;
38
source/IOStream/ChildPipeIOStream.cpp
@@ -130,6 +130,11 @@ bool ChildPipeIOStream::is_open() const
130
return !pin_.eof();
131
}
132
133
+bool ChildPipeIOStream::running()
134
+{
135
+ return child_.running();
136
+}
137
138
std::string ChildPipeIOStream::read_once(size_t max_count)
139
{
140
constexpr size_t kBufferSize = 128 * 1024;
0 commit comments