forked from boostorg/unordered
upgraded to boost::process::v2
This commit is contained in:
1 parent
b41c054c66
commit
1389043933
2 files changed
+13
-8
No files matched your search
@@ -4,10 +4,11 @@
|
||||
|
||||
#include <boost/unordered/concurrent_flat_map.hpp>
|
||||
#include <atomic>
|
||||
#include <boost/asio.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
#include <boost/interprocess/allocators/allocator.hpp>
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
#include <boost/process/child.hpp>
|
||||
#include <boost/process/process.hpp>
|
||||
#include <boost/uuid/random_generator.hpp>
|
||||
#include <boost/uuid/uuid_io.hpp>
|
||||
#include <chrono>
|
||||
@@ -57,9 +58,11 @@ int parent(const char* exe_name)
|
||||
allocator(segment.get_segment_manager()));
|
||||
std::atomic_int& start = *segment.construct<std::atomic_int>(start_name)(0);
|
||||
|
||||
std::vector<boost::process::child> children;
|
||||
boost::asio::io_context ctx;
|
||||
std::vector<boost::process::process> children;
|
||||
for (int i = 0; i < NUM_CHILDS; ++i) {
|
||||
children.emplace_back(exe_name, std::to_string(i), segment_name);
|
||||
children.push_back(boost::process::process(
|
||||
ctx.get_executor(), exe_name, {std::to_string(i), segment_name_str}));
|
||||
}
|
||||
|
||||
start.store(1);
|
||||
|
||||
Reference in new issue
Block a user