| 736 | } |
| 737 | |
| 738 | void event::set_reliability(const reliability_type_e _reliability) { |
| 739 | if (reliability_.load(std::memory_order_acquire) == _reliability) { |
| 740 | return; |
| 741 | } |
| 742 | if (reliability_ != reliability_type_e::RT_UNKNOWN) { |
| 743 | VSOMEIP_ERROR_P << "Trying to change reliability from non-default value. old=" |
| 744 | << static_cast<int>(reliability_.load(std::memory_order_acquire)) << " new=" << static_cast<int>(_reliability); |
| 745 | return; |
| 746 | } |
| 747 | current_->set_reliable(_reliability == reliability_type_e::RT_RELIABLE); |
| 748 | update_->set_reliable(_reliability == reliability_type_e::RT_RELIABLE); |
| 749 | reliability_.store(_reliability, std::memory_order_release); |
| 750 | } |
| 751 | |
| 752 | void event::remove_pending(const std::shared_ptr<endpoint_definition>& _target) { |
| 753 |
no test coverage detected