Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2013-12-18 08:39:36 +0400
committerChristopher Faylor <me@cgf.cx>2013-12-18 08:39:36 +0400
commit27c6e45ea3da26b2b95fb1d12971418b5367f0e2 (patch)
tree519cc5229be0699c795796e1bd8b44eb52b1dc6e
parente9da9dfb94b580edb617562c7681b9646fbc7255 (diff)
* autoload.cc (timeBeginPeriod): Delete.
* dcrt0.cc (dll_crt0_1): Use NtSetTimerResolution rather than timeBeginPeriod.
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/autoload.cc1
-rw-r--r--winsup/cygwin/dcrt0.cc2
3 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 19b7a5e68..11724c310 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,11 @@
2013-12-17 Christopher Faylor <me.cygwin2013@cgf.cx>
+ * autoload.cc (timeBeginPeriod): Delete.
+ * dcrt0.cc (dll_crt0_1): Use NtSetTimerResolution rather than
+ timeBeginPeriod.
+
+2013-12-17 Christopher Faylor <me.cygwin2013@cgf.cx>
+
* autoload.cc (timeBeginPeriod): Autoload.
* dcrt0.cc (dll_crt0_1): Use timeBeginPeriod to set default resolution
to 1 ms.
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc
index 8a98b5b29..0199cc553 100644
--- a/winsup/cygwin/autoload.cc
+++ b/winsup/cygwin/autoload.cc
@@ -643,7 +643,6 @@ LoadDLLfunc (SetParent, 8, user32)
LoadDLLfunc (SetProcessWindowStation, 4, user32)
LoadDLLfunc (SetThreadDesktop, 4, user32)
-LoadDLLfunc (timeBeginPeriod, 4, winmm)
LoadDLLfuncEx3 (waveInAddBuffer, 12, winmm, 1, 0, 1)
LoadDLLfuncEx3 (waveInClose, 4, winmm, 1, 0, 1)
LoadDLLfuncEx3 (waveInGetNumDevs, 0, winmm, 1, 0, 1)
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index 3d430a958..d491fa6c5 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -836,7 +836,7 @@ dll_crt0_1 (void *)
{
extern void initial_setlocale ();
- timeBeginPeriod (1);
+ NtSetTimerResolution (10000, TRUE, NULL);
_my_tls.incyg++;
/* Inherit "parent" exec'ed process sigmask */
if (spawn_info && !in_forkee)