diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 19b7a5e68..11724c310 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2013-12-17 Christopher Faylor + + * autoload.cc (timeBeginPeriod): Delete. + * dcrt0.cc (dll_crt0_1): Use NtSetTimerResolution rather than + timeBeginPeriod. + 2013-12-17 Christopher Faylor * autoload.cc (timeBeginPeriod): Autoload. 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)