library/utility/cancelable.hh

namespace scarab

The standard scarab namespace.

class cancelable
#include <cancelable.hh>

Public Functions

cancelable()
~cancelable()
void cancel()

asynchronous cancel function

void reset_cancel()

reset to non-canceled state

bool is_canceled() const

check canceled state

Protected Attributes

std::atomic<bool> f_canceled

Private Functions

void do_cancellation()
void do_reset_cancellation()