Browse Source

Add virtual destructor for MultiTask. Reason: To be able to

delete derived objects using MultiTask *.


git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@104 d34b734f-a00e-4b39-a726-e4eeb87269ab
adeniz_1
adeniz 9 years ago
parent
commit
0499c228cd
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      multitasking.hpp

+ 1
- 0
multitasking.hpp View File

class MultiTask { class MultiTask {
public: public:
enum class State{Running, Waiting, Finished}; enum class State{Running, Waiting, Finished};
virtual ~MultiTask() {}
virtual State task() = 0; virtual State task() = 0;
}; };



Loading…
Cancel
Save