summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/mingwex/feraiseexcept.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-03-29 10:21:30 +0000
committerCorinna Vinschen <corinna@vinschen.de>2011-03-29 10:21:30 +0000
commitcd50649255074f7d76400127ed7613d78c08488b (patch)
tree0a024d44927d7dad724cb093591ad8fc4bf32d80 /winsup/mingw/mingwex/feraiseexcept.c
parent700c641dfa72b292a231810ab35d93849f4c8fe1 (diff)
downloadcygnal-cd50649255074f7d76400127ed7613d78c08488b.tar.gz
cygnal-cd50649255074f7d76400127ed7613d78c08488b.tar.bz2
cygnal-cd50649255074f7d76400127ed7613d78c08488b.zip
* autoload.cc (winmm): Remove 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. Document entire functionality of timeGetTime in case we need it. (hires_ms::resolution): Try a call to NtQueryTimerResolution to fetch current period. Fall back to heuristic if that fails. Cast to DWORD in assignments to minperiod. (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. Use status code from NtSetTimerResolution to compute errno. Convert period to ULONGLONG and store 100ns value to simplify code.
Diffstat (limited to 'winsup/mingw/mingwex/feraiseexcept.c')
0 files changed, 0 insertions, 0 deletions