8 #define SCARAB_API_EXPORTS 17 LOGGER( slog,
"cancelable" );
30 a_orig.f_canceled.store(
false );
47 a_orig.f_canceled.store(
false );
58 LDEBUG( slog,
"cancelable::do_cancellation with code <" << a_code <<
">" );
70 f_wrapped( &a_cancelable )
79 return std::make_shared< cancelable_wrapper >( a_cancelable );
cancelable_wrapper(cancelable &a_cancelable)
LOGGER(mtlog, "authentication")
std::shared_ptr< cancelable_wrapper > wrap_cancelable(cancelable &a_cancelable)
Convenience function to create a cancelable_wrapper.
Contains the logger class and macros, based on Kasper's KLogger class.
virtual ~cancelable_wrapper()
std::atomic< bool > f_canceled
virtual void do_reset_cancellation()
virtual void do_cancellation(int a_code)
Base class for a cancelable object (i.e. an object that can be canceled by scarab::signal_handler or ...
static void remove_cancelable(std::shared_ptr< cancelable > a_cancelable)
Static version: remove a cancelable object.
cancelable & operator=(const cancelable &a_orig)