diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-24 13:28:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-24 13:28:22 +0100 |
| commit | 7187b59857f84a5a94441f0873130cf0801e8ea6 (patch) | |
| tree | 8ba431dbf60d2b6458de051d19be084242f1e675 /src/cancel.h | |
| parent | 744eae9a14f834088289d10d7158ad89857565ad (diff) | |
wipcancel
Diffstat (limited to 'src/cancel.h')
| -rw-r--r-- | src/cancel.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/cancel.h b/src/cancel.h new file mode 100644 index 00000000..a292e135 --- /dev/null +++ b/src/cancel.h @@ -0,0 +1,26 @@ +#ifndef LIBDCP_CANCEL_H +#define LIBDCP_CANCEL_H + + +#include <stdexcept> + + +namespace dcp { + + +class Cancel +{ +public: + virtual ~Cancel() {} + + virtual void cancel() = 0; + virtual void reset() = 0; +}; + + +class Cancelled : public std::exception {}; + + +} + +#endif |
