diff options
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 6 | ||||
-rw-r--r-- | winsup/cygwin/autoload.cc | 1 | ||||
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 19b7a5e..11724c3 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 8a98b5b..0199cc5 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 3d430a9..d491fa6 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) |