From c4c5db4de7019ca3b0e0403b57b1a46aa9bdcd12 Mon Sep 17 00:00:00 2001 From: misson20000 Date: Fri, 31 Aug 2018 17:08:30 -0700 Subject: [PATCH] KDebug should inherit from KWaitable --- include/libtransistor/cpp/types.hpp | 2 +- lib/cpp/types.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libtransistor/cpp/types.hpp b/include/libtransistor/cpp/types.hpp index 8d2b3930..c03a6bcc 100644 --- a/include/libtransistor/cpp/types.hpp +++ b/include/libtransistor/cpp/types.hpp @@ -127,7 +127,7 @@ class KEvent : public KWaitable { Result WaitSignal(uint64_t timeout); }; -class KDebug : public KObject { +class KDebug : public KWaitable { public: KDebug() = default; KDebug(debug_h handle); diff --git a/lib/cpp/types.cpp b/lib/cpp/types.cpp index ed29c54d..2fb4a00a 100644 --- a/lib/cpp/types.cpp +++ b/lib/cpp/types.cpp @@ -153,7 +153,7 @@ KProcess::KProcess(process_h handle) : KWaitable(handle) { KEvent::KEvent(revent_h handle) : KWaitable(handle) { } -KDebug::KDebug(debug_h handle) : KObject(handle) { +KDebug::KDebug(debug_h handle) : KWaitable(handle) { } KResourceLimit::KResourceLimit(resource_limit_h handle) : KObject(handle) {