Commit c8f174ac authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

io/uring/Operation: disallow copying

parent 047e169f
...@@ -45,10 +45,15 @@ class Operation { ...@@ -45,10 +45,15 @@ class Operation {
CancellableOperation *cancellable = nullptr; CancellableOperation *cancellable = nullptr;
public: public:
Operation() noexcept = default;
~Operation() noexcept { ~Operation() noexcept {
CancelUring(); CancelUring();
} }
Operation(const Operation &) = delete;
Operation &operator=(const Operation &) = delete;
/** /**
* Are we waiting for the operation to complete? * Are we waiting for the operation to complete?
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment