| 38 | local_server::~local_server() = default; |
| 39 | |
| 40 | void local_server::start() { |
| 41 | std::scoped_lock const lock{mtx_}; |
| 42 | if (state_ == state_e::STARTED) { |
| 43 | VSOMEIP_WARNING_P << "Rejecting the attempt to start the server when it is already started"; |
| 44 | return; |
| 45 | } |
| 46 | state_ = state_e::STARTED; |
| 47 | ++lc_count_; |
| 48 | start_unlock(lc_count_); |
| 49 | } |
| 50 | |
| 51 | void local_server::stop() { |
| 52 | std::scoped_lock const lock{mtx_}; |