| 1876 | } |
| 1877 | |
| 1878 | void application_impl::clear_all_handler() { |
| 1879 | unregister_state_handler(); |
| 1880 | { |
| 1881 | std::scoped_lock its_lock{offered_services_handler_mutex_}; |
| 1882 | offered_services_handler_ = nullptr; |
| 1883 | } |
| 1884 | |
| 1885 | { |
| 1886 | std::scoped_lock availability_lock{availability_mutex_}; |
| 1887 | availability_.clear(); |
| 1888 | } |
| 1889 | |
| 1890 | { |
| 1891 | std::scoped_lock its_lock{subscription_mutex_}; |
| 1892 | subscription_.clear(); |
| 1893 | } |
| 1894 | |
| 1895 | { |
| 1896 | std::scoped_lock its_lock{members_mutex_}; |
| 1897 | members_.clear(); |
| 1898 | } |
| 1899 | { |
| 1900 | std::scoped_lock its_lock{handlers_mutex_}; |
| 1901 | handlers_.clear(); |
| 1902 | availability_handlers_.clear(); |
| 1903 | } |
| 1904 | } |
| 1905 | |
| 1906 | bool application_impl::is_routing() const { |
| 1907 | return is_routing_manager_host_; |