CVSROOT: /cvs/src Module name: src Branch: cv-post-1_7_9 Changes by: cori...@sourceware.org 2011-03-11 10:21:55
Modified files: winsup/cygwin : autoload.cc hires.h ntdll.h path.cc times.cc Log message: * autoload.cc (winmm): Rremove time functions. Don't treat unloadable wave functions as fatal. * hires.h (hires_ms::timeGetTime_ns): New private method. (hires_ms::dmsecs): Call timeGetTime_ns here. * ntdll.h (struct _KSYSTEM_TIME): Define. (KUSER_SHARED_DATA): Redefine to allow access to InterruptTime. (SharedUserData): Define here. (NtQueryTimerResolution): Declare. (NtSetTimerResolution): Declare. * path.cc (SharedUserData): Move to ntdll.h. * times.cc (hires_ms::timeGetTime_ns): New private method. Use throughout instead of timeGetTime. (hires_ms::resolution): Try a call to NtQueryTimerResolution to fetch current period. Fall back to heuristic if that fails. (clock_setres): Align period to possible values per a call to NtQueryTimerResolution. Explain why. Replace calls to timeBeginPeriod and timeEndPeriod with underlying call to NtSetTimerResolution. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/autoload.cc.diff?cvsroot=src&only_with_tag=cv-post-1_7_9&r1=1.189&r2=1.189.2.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/hires.h.diff?cvsroot=src&only_with_tag=cv-post-1_7_9&r1=1.16&r2=1.16.2.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ntdll.h.diff?cvsroot=src&only_with_tag=cv-post-1_7_9&r1=1.106&r2=1.106.2.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/path.cc.diff?cvsroot=src&only_with_tag=cv-post-1_7_9&r1=1.626&r2=1.626.2.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/times.cc.diff?cvsroot=src&only_with_tag=cv-post-1_7_9&r1=1.103&r2=1.103.2.1