|
SObjectizer
5.5
|
An interface of stop_guard entity. More...
#include <stop_guard.hpp>
Public Types | |
| enum | setup_result_t { setup_result_t::ok, setup_result_t::stop_already_in_progress } |
| Type for result of setting up a new stop_guard. More... | |
| enum | what_if_stop_in_progress_t { what_if_stop_in_progress_t::throw_exception, what_if_stop_in_progress_t::return_negative_result } |
Public Member Functions | |
| stop_guard_t ()=default | |
| stop_guard_t (const stop_guard_t &)=delete | |
| stop_guard_t (stop_guard_t &&)=delete | |
| virtual | ~stop_guard_t () SO_5_NOEXCEPT=default |
| stop_guard_t & | operator= (const stop_guard_t &)=delete |
| stop_guard_t & | operator= (stop_guard_t &&)=delete |
| virtual void | stop () SO_5_NOEXCEPT=0 |
| Perform stop-related actions. More... | |
An interface of stop_guard entity.
All implementations of stop_guards must implement this interface.
|
strong |
|
strong |
|
default |
|
delete |
|
delete |
|
virtualdefault |
|
delete |
|
delete |
|
pure virtual |
Perform stop-related actions.
This method will be called by SObjectizer Environment when an user called environment_t::stop().
Stop_guard must start stop-related activities. When all these activities will be finished the stop_guard must remove itself from the list of stop_guards.
Implemented in so_5::experimental::testing::v1::impl::stop_guard_for_unfreezer_t.
1.8.14