* autoload.cc (timeBeginPeriod): Delete.

* dcrt0.cc (dll_crt0_1): Use NtSetTimerResolution rather than timeBeginPeriod.
This commit is contained in:
Christopher Faylor 2013-12-18 04:39:36 +00:00
parent e9da9dfb94
commit 27c6e45ea3
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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.

View File

@ -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)

View File

@ -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)