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 {
CancellableOperation *cancellable = nullptr;
public:
Operation() noexcept = default;
~Operation() noexcept {
CancelUring();
}
Operation(const Operation &) = delete;
Operation &operator=(const Operation &) = delete;
/**
* 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