ksys: Make BaseProcHandle non-copyable and non-movable to prevent misuse

This commit is contained in:
Léo Lam 2021-03-14 17:14:34 +01:00
parent 4f2c0a6079
commit 7efbe9a071
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,11 @@ public:
BaseProcHandle();
~BaseProcHandle();
BaseProcHandle(const BaseProcHandle&) = delete;
BaseProcHandle(BaseProcHandle&&) = delete;
auto operator=(const BaseProcHandle&) = delete;
auto operator=(BaseProcHandle&&) = delete;
bool isProcReady() const;
bool hasProcCreationFailed() const;
bool isProcCreationCancelled() const;