From 1d9def9edae0011eeee8f83dc32fb3797ca2f46b Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 7 Oct 2011 15:36:12 -0700 Subject: More work in the Task manager. Also fixing a few bugs linked with the printer and TLS. Removed flto from compilation flags: this actually creates bad code (!) --- includes/Task.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/Task.h') diff --git a/includes/Task.h b/includes/Task.h index 314532b..fb210a2 100644 --- a/includes/Task.h +++ b/includes/Task.h @@ -17,12 +17,12 @@ class Task { FAULTED, }; Task(); - ~Task() { free(stack); free(tls); } - virtual void Do() = 0; + virtual ~Task(); virtual const char * getName() = 0; Status getStatus() { return status; } protected: void suspend(); + virtual void Do() = 0; private: size_t stackSize() { return 128 * 1024; } void switchTo(); -- cgit v1.2.3