diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-18 06:51:01 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-18 06:51:01 +0100 |
| commit | 0745b058c1fd373a10210c8d9397008b145d82bd (patch) | |
| tree | 506b6d858b49e5dcc1e75e8e4f7a705553722668 /example/asio_example_2 | |
| parent | e3c44bac404812920f6e19285bd126b087f3bc39 (diff) | |
[CHORE] Update examples for Asio and AllocOp.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'example/asio_example_2')
| -rw-r--r-- | example/asio_example_2/example.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/example/asio_example_2/example.cpp b/example/asio_example_2/example.cpp index c3bfeef..42410d7 100644 --- a/example/asio_example_2/example.cpp +++ b/example/asio_example_2/example.cpp @@ -9,18 +9,18 @@ #include <future> #include <boost/process.hpp> -namespace asio = ::boost::asio; +namespace asio = ::boost::asio; namespace process = ::boost::process; /// @brief Wrap OCL in ASIO calls. int main() { - asio::io_context ioc; - process::process proc(ioc, "/usr/bin/g++", {"--version"}, process::v2::process_stdio{{ /* in to default */}, {}, nullptr}); - - proc.wait(); + asio::io_context ioc; + process::process proc(ioc, "/usr/bin/g++", {"--version"}, process::v2::process_stdio{{/* in to default */}, {}, nullptr}); - ocl::asio::run<[]() { (void)0; }>(ioc); + proc.wait(); - return EXIT_SUCCESS; + ocl::asio::run<[]() { (void)0; }>(ioc); + + return EXIT_SUCCESS; } |
