X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/686ecd1557b70580e32bff82600334ae26e81c4a..f74a73b36509260f612770de2caeb084f1857e08:/src/msw/basemsw.cpp diff --git a/src/msw/basemsw.cpp b/src/msw/basemsw.cpp index 033d3a76b2..e033e2be88 100644 --- a/src/msw/basemsw.cpp +++ b/src/msw/basemsw.cpp @@ -28,6 +28,7 @@ #endif //WX_PRECOMP #include "wx/apptrait.h" +#include "wx/msw/private/timer.h" // MBN: this is a workaround for MSVC 5: if it is not #included in // some wxBase file, wxRecursionGuard methods won't be exported from // wxBase.dll, and MSVC 5 will give linker errors @@ -35,6 +36,15 @@ #include "wx/msw/private.h" +// ============================================================================ +// wxAppTraits implementation +// ============================================================================ + +WXDWORD wxAppTraits::DoSimpleWaitForThread(WXHANDLE hThread) +{ + return ::WaitForSingleObject((HANDLE)hThread, INFINITE); +} + // ============================================================================ // wxConsoleAppTraits implementation // ============================================================================ @@ -71,3 +81,15 @@ bool wxConsoleAppTraits::DoMessageFromThreadWait() return true; } +wxTimerImpl * +wxConsoleAppTraits::CreateTimerImpl(wxTimer *timer) +{ + return new wxMSWTimerImpl(timer); +} + + +WXDWORD wxConsoleAppTraits::WaitForThread(WXHANDLE hThread) +{ + return DoSimpleWaitForThread(hThread); +} +