diff options
author | Tim Besard <tim.besard@gmail.com> | 2011-11-21 11:04:59 +0100 |
---|---|---|
committer | Tim Besard <tim.besard@gmail.com> | 2011-11-21 11:04:59 +0100 |
commit | c5ab23351a31cf095563e978a46698d83180e845 (patch) | |
tree | 5fa9120ff8b6df127ddfa3343d2f88cafaa699fe | |
parent | 47ec5c7fd2d9e64a75808a5bf9f6448697ab23a7 (diff) |
Destructor bugfix (prevent a Run object getting destructed through a Thread pointed, which would cause the Thread destructor not getting called).
-rw-r--r-- | src/thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread.h b/src/thread.h index 9a26579..af2323c 100644 --- a/src/thread.h +++ b/src/thread.h @@ -32,7 +32,6 @@ class Thread { public: Thread(); - ~Thread(); virtual int run() = 0; @@ -48,6 +47,7 @@ public: static void exit(); protected: + ~Thread(); void lock(); void unlock(); static void global_lock(); |