X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fapplication.h;h=5f3968ac4018faa2c6f3f8b1e3e3fb8f77f1ef64;hp=b2502edd83501094060450dae399d234b4444d51;hb=727f8ce40806cc2f7c295260f3c9aa156c815c70;hpb=a883560b42163f5ed0c83204469d17dd4f0134b6 diff --git a/source/application.h b/source/application.h index b2502ed..5f3968a 100644 --- a/source/application.h +++ b/source/application.h @@ -6,13 +6,9 @@ Distributed under the LGPL #ifndef MSP_FRAMEWORK_APPLICATION_H_ #define MSP_FRAMEWORK_APPLICATION_H_ -#ifdef WIN32 -#include "win32signum.h" -#endif - -#include #include "event.h" #include "poller.h" +#include "types.h" namespace Msp { @@ -58,7 +54,7 @@ protected: bool done; int exit_code; - Application(): exit_code(0), tick_mode_(IDLE), poller_(0), ev_mgr_(0), main_tid(pthread_self()) { } + Application(); virtual int main(); void catch_signal(int); void set_tick_mode(TickMode); @@ -69,7 +65,7 @@ private: TickMode tick_mode_; Poller *poller_; EventManager *ev_mgr_; - pthread_t main_tid; + ThreadHandle main_tid; Application(const Application &); Application &operator=(const Application &);