Fixes for other platforms than Windows

This commit is contained in:
Micke Prag 2010-10-24 16:05:38 +00:00
parent af1aad4143
commit 23be1d29fa

View file

@ -19,10 +19,10 @@ using namespace TelldusCore;
class TelldusCore::ThreadPrivate { class TelldusCore::ThreadPrivate {
public: public:
bool running;
#ifdef _WINDOWS #ifdef _WINDOWS
HANDLE thread; HANDLE thread;
DWORD threadId; DWORD threadId;
bool running;
#else #else
pthread_t thread; pthread_t thread;
#endif #endif
@ -67,6 +67,8 @@ void *Thread::exec( void *ptr ) {
t->run(); t->run();
t->d->running = false; t->d->running = false;
} }
#ifdef _WINDOWS
ExitThread(0); ExitThread(0);
#endif
return 0; return 0;
} }