MCPcopy Create free account
hub / github.com/COVESA/vsomeip / wait_finish

Method wait_finish

test/common/src/process.cpp:47–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void process_manager_t::wait_finish() {
48 std::unique_ptr<TinyProcessLib::Process> local_proc;
49 {
50 std::scoped_lock lock{process_mutex_};
51 if (process_) {
52 local_proc = std::move(process_);
53 }
54 }
55 if (local_proc) {
56 exit_code_ = local_proc->get_exit_status();
57 assert(exit_code_ == 0 && "Process exited with non-zero code");
58 }
59}
60
61void process_manager_t::terminate() {
62 std::scoped_lock lock{process_mutex_};

Callers 2

stopMethod · 0.80
force_stopMethod · 0.80

Calls 1

get_exit_statusMethod · 0.45

Tested by

no test coverage detected