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:23:52 UTC
svn commit: r543337 - /apr/apr/trunk/time/win32/time.c
Author: wrowe
Date: Thu May 31 17:23:51 2007
New Revision: 543337
URL: http://svn.apache.org/viewvc?view=rev&rev=543337
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
Modified:
apr/apr/trunk/time/win32/time.c
Modified: apr/apr/trunk/time/win32/time.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/time/win32/time.c?view=diff&rev=543337&r1=543336&r2=543337
==============================================================================
--- apr/apr/trunk/time/win32/time.c (original)
+++ apr/apr/trunk/time/win32/time.c Thu May 31 17:23:51 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