io/uring/Operation: disallow copying
This commit is contained in:
parent
047e169f3e
commit
c8f174ac92
@ -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?
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user