From: Stefan Csomor Date: Thu, 20 May 2010 06:09:10 +0000 (+0000) Subject: utils_osx isn't part of base but of core, moving wxMacWakeUp to a file that really... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3bfba421c76816f6b5fa988720868fe7404da2a1 utils_osx isn't part of base but of core, moving wxMacWakeUp to a file that really is in base git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/core/evtloop_cf.cpp b/src/osx/core/evtloop_cf.cpp index ad9a5da15e..d526f8e9ca 100644 --- a/src/osx/core/evtloop_cf.cpp +++ b/src/osx/core/evtloop_cf.cpp @@ -217,6 +217,18 @@ void wxCFEventLoop::WakeUp() CFRunLoopWakeUp(m_runLoop); } +#if wxUSE_BASE + +void wxMacWakeUp() +{ + wxEventLoopBase * const loop = wxEventLoopBase::GetActive(); + + if ( loop ) + loop->WakeUp(); +} + +#endif + bool wxCFEventLoop::YieldFor(long eventsToProcess) { #if wxUSE_THREADS diff --git a/src/osx/utils_osx.cpp b/src/osx/utils_osx.cpp index 4764ec07a0..c7adb41811 100644 --- a/src/osx/utils_osx.cpp +++ b/src/osx/utils_osx.cpp @@ -64,18 +64,6 @@ bool wxColourDisplay() return true; } -#if wxUSE_BASE - -void wxMacWakeUp() -{ - wxEventLoopBase * const loop = wxEventLoopBase::GetActive(); - - if ( loop ) - loop->WakeUp(); -} - -#endif - #if wxOSX_USE_COCOA_OR_CARBON // Returns depth of screen int wxDisplayDepth()