X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fpthreadwrapper%2Frunnable.h;h=fa1084749ecb0701546bd136aa2e3625af6470f8;hb=44f964d9b2b2d55a5b5672e9297717bd25fa8ee2;hp=7906f197b478de0282c14d38ae143f53e727a582;hpb=c7fcb4c4bc5012a584add81a9509fc1f84c3c688;p=fms.git diff --git a/include/pthreadwrapper/runnable.h b/include/pthreadwrapper/runnable.h index 7906f19..fa10847 100644 --- a/include/pthreadwrapper/runnable.h +++ b/include/pthreadwrapper/runnable.h @@ -12,7 +12,7 @@ class Runnable { public: Runnable():m_thread(0) {} - ~Runnable() {} + virtual ~Runnable() {} virtual void Run()=0; @@ -22,7 +22,7 @@ protected: private: - friend Thread; + friend class Thread; Thread *m_thread; };