mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
fix(tools): No longer use removed alias io_service
Deprecated viad3bbf3756d
and removed via49fcd03434
in Boost 1.87 or Asio 1.33.
This commit is contained in:
parent
c80f97b338
commit
324a27a2e1
|
@ -1,5 +1,5 @@
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* Copyright (C) 2017-2023 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
|
* Copyright (C) 2017-2025 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
|
||||||
* *
|
* *
|
||||||
* This software is distributed under the terms of the *
|
* This software is distributed under the terms of the *
|
||||||
* GNU Lesser General Public Licence (LGPL) version 3, *
|
* GNU Lesser General Public Licence (LGPL) version 3, *
|
||||||
|
@ -64,22 +64,22 @@ execute_result execute(const string& cmd, const string& prefix, const string& in
|
||||||
|
|
||||||
p.Print(cmd);
|
p.Print(cmd);
|
||||||
|
|
||||||
ba::io_service ios;
|
ba::io_context ioc;
|
||||||
|
|
||||||
// containers for std_in
|
// containers for std_in
|
||||||
ba::const_buffer inputBuffer(ba::buffer(input));
|
ba::const_buffer inputBuffer(ba::buffer(input));
|
||||||
bp::async_pipe inputPipe(ios);
|
bp::async_pipe inputPipe(ioc);
|
||||||
// containers for std_out
|
// containers for std_out
|
||||||
ba::streambuf outputBuffer;
|
ba::streambuf outputBuffer;
|
||||||
bp::async_pipe outputPipe(ios);
|
bp::async_pipe outputPipe(ioc);
|
||||||
// containers for std_err
|
// containers for std_err
|
||||||
ba::streambuf errorBuffer;
|
ba::streambuf errorBuffer;
|
||||||
bp::async_pipe errorPipe(ios);
|
bp::async_pipe errorPipe(ioc);
|
||||||
|
|
||||||
const string delimiter = "\n";
|
const string delimiter = "\n";
|
||||||
ba::steady_timer inputTimer(ios);
|
ba::steady_timer inputTimer(ioc);
|
||||||
inputTimer.expires_after(std::chrono::milliseconds(1000)); // NOLINT
|
inputTimer.expires_after(std::chrono::milliseconds(1000)); // NOLINT
|
||||||
ba::steady_timer signalTimer(ios);
|
ba::steady_timer signalTimer(ioc);
|
||||||
signalTimer.expires_after(std::chrono::milliseconds(2000)); // NOLINT
|
signalTimer.expires_after(std::chrono::milliseconds(2000)); // NOLINT
|
||||||
|
|
||||||
// child process
|
// child process
|
||||||
|
@ -154,7 +154,7 @@ execute_result execute(const string& cmd, const string& prefix, const string& in
|
||||||
};
|
};
|
||||||
ba::async_read_until(errorPipe, errorBuffer, delimiter, onStdErr);
|
ba::async_read_until(errorPipe, errorBuffer, delimiter, onStdErr);
|
||||||
|
|
||||||
ios.run();
|
ioc.run();
|
||||||
c.wait();
|
c.wait();
|
||||||
|
|
||||||
result.exit_code = c.exit_code();
|
result.exit_code = c.exit_code();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user