X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d8dd11bab47b1e4d4c5685e9b5fb0e15fb058adc..5e84fc5a820a15a1ce2d32d2ae71f0bf92abda3d:/include/wx/thread.h diff --git a/include/wx/thread.h b/include/wx/thread.h index 39bc1dd2d4..2c6f2f8c0e 100644 --- a/include/wx/thread.h +++ b/include/wx/thread.h @@ -134,11 +134,9 @@ private: // in order to avoid any overhead under !MSW make all wxCriticalSection class // functions inline - but this can't be done under MSW -#if defined(__WXMSW__) +#if defined(__WXMSW__) || defined(__WXPM__) class WXDLLEXPORT wxCriticalSectionInternal; #define WXCRITICAL_INLINE -#elif defined(__WXPM__) - #define WXCRITICAL_INLINE #else // !MSW && !PM #define WXCRITICAL_INLINE inline #endif // MSW/!MSW @@ -162,7 +160,7 @@ private: wxCriticalSection(const wxCriticalSection&); wxCriticalSection& operator=(const wxCriticalSection&); -#if defined(__WXMSW__) +#if defined(__WXMSW__) || defined(__WXPM__) wxCriticalSectionInternal *m_critsect; #else // !MSW wxMutex m_mutex; @@ -409,9 +407,6 @@ public: // returns TRUE if the main thread has GUI lock extern bool WXDLLEXPORT wxGuiOwnedByMainThread(); - - inline wxCriticalSection::wxCriticalSection() { } - inline wxCriticalSection::~wxCriticalSection() { } #else // !MSW && !PM // implement wxCriticalSection using mutexes inline wxCriticalSection::wxCriticalSection() { }