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