From 016ac2b34f93cf23812278041fb1f56004497a58 Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Sun, 26 Dec 2021 17:48:12 +0100 Subject: [PATCH] Clean up --- Thread.cpp | 5 +++++ Thread.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Thread.cpp b/Thread.cpp index ef76ab8..f2ea928 100644 --- a/Thread.cpp +++ b/Thread.cpp @@ -26,6 +26,11 @@ CThread::CThread() } +CThread::~CThread() +{ + +} + void CThread::Create() { //Actually does nothing, might be removed in the future diff --git a/Thread.h b/Thread.h index 3da7b18..4715f8d 100644 --- a/Thread.h +++ b/Thread.h @@ -27,13 +27,14 @@ class CThread { public: CThread(); + virtual ~CThread(); void Create(); void Run(); void Wait(); void Sleep(unsigned long milli); protected: - virtual void* Entry(); + virtual void* Entry() = 0; private: static void EntryRunner(CThread * thread);