io/uring/Operation: disallow copying

This commit is contained in:
Max Kellermann 2021-12-02 14:58:31 +01:00 committed by Max Kellermann
parent 047e169f3e
commit c8f174ac92

View File

@ -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?
*/