Minor tweek for WXPM

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster 1999-11-15 04:48:33 +00:00
parent 6b1e0606aa
commit d45d30c868

View File

@ -139,7 +139,7 @@ private:
#define WXCRITICAL_INLINE #define WXCRITICAL_INLINE
#elif defined(__WXMAC__) #elif defined(__WXMAC__)
class WXDLLEXPORT wxCriticalSectionInternal; class WXDLLEXPORT wxCriticalSectionInternal;
#define WXCRITICAL_INLINE #define WXCRITICAL_INLINE
#else // !MSW && !PM #else // !MSW && !PM
#define WXCRITICAL_INLINE inline #define WXCRITICAL_INLINE inline
#endif // MSW/!MSW #endif // MSW/!MSW
@ -422,6 +422,9 @@ public:
// returns TRUE if the main thread has GUI lock // returns TRUE if the main thread has GUI lock
extern bool WXDLLEXPORT wxGuiOwnedByMainThread(); extern bool WXDLLEXPORT wxGuiOwnedByMainThread();
// return TRUE if the main thread is waiting for some other to terminate:
// wxApp then should block all "dangerous" messages
extern bool WXDLLEXPORT wxIsWaitingForThread();
#else // !MSW && !PM #else // !MSW && !PM
// implement wxCriticalSection using mutexes // implement wxCriticalSection using mutexes
inline wxCriticalSection::wxCriticalSection() { } inline wxCriticalSection::wxCriticalSection() { }