You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/06/01 02:24:20 UTC
svn commit: r543338 - /apr/apr/branches/1.2.x/time/win32/time.c
Author: wrowe
Date: Thu May 31 17:24:19 2007
New Revision: 543338
URL: http://svn.apache.org/viewvc?view=rev&rev=543338
Log:
The implementation of apr_time_clock_hires calls SetTimerResolution which is not
implemented on WinCE. The Unix implementation of this function is a no-op. The
attached patch makes the implementation a no-op for WinCE.
PR: 39857
Submitted by: Curt Arnold <carnold apache.org>
Reviewed by: Davi Arnaut
Backport: 543337
Modified:
apr/apr/branches/1.2.x/time/win32/time.c
Modified: apr/apr/branches/1.2.x/time/win32/time.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/time/win32/time.c?view=diff&rev=543338&r1=543337&r2=543338
==============================================================================
--- apr/apr/branches/1.2.x/time/win32/time.c (original)
+++ apr/apr/branches/1.2.x/time/win32/time.c Thu May 31 17:24:19 2007
@@ -304,7 +304,13 @@
Sleep((DWORD)(t / 1000));
}
-
+#if defined(_WIN32_WCE)
+/* A noop on WinCE, like Unix implementation */
+APR_DECLARE(void) apr_time_clock_hires(apr_pool_t *p)
+{
+ return;
+}
+#else
static apr_status_t clock_restore(void *unsetres)
{
ULONG newRes;
@@ -324,3 +330,4 @@
apr_pool_cleanup_null);
}
}
+#endif