727
728
729
730
731
732
733
734
735
736
737
738
739
740
|
* If Tcl_Finalize was called from DllMain, the calibration thread is in a
* paused state so we need to timeout and continue.
*/
WaitForSingleObject(timeInfo.calibrationThread, 100);
CloseHandle(timeInfo.exitEvent);
CloseHandle(timeInfo.calibrationThread);
}
/*
*----------------------------------------------------------------------
*
* TclpGetTZName --
*
|
>
>
>
>
>
|
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
|
* If Tcl_Finalize was called from DllMain, the calibration thread is in a
* paused state so we need to timeout and continue.
*/
WaitForSingleObject(timeInfo.calibrationThread, 100);
CloseHandle(timeInfo.exitEvent);
CloseHandle(timeInfo.calibrationThread);
/*
* Reset timer resolution (shutdown case)
*/
(void)TclWinResetTimerResolution();
}
/*
*----------------------------------------------------------------------
*
* TclpGetTZName --
*
|
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
|
*/
waitResult = WaitForSingleObjectEx(timeInfo.exitEvent, 1000, FALSE);
if (waitResult == WAIT_OBJECT_0) {
break;
}
UpdateTimeEachSecond();
}
/* lint */
return (DWORD) 0;
}
/*
|
>
>
>
>
>
|
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
|
*/
waitResult = WaitForSingleObjectEx(timeInfo.exitEvent, 1000, FALSE);
if (waitResult == WAIT_OBJECT_0) {
break;
}
UpdateTimeEachSecond();
/*
* Reset timer resolution if expected (check waiter count once per second)
*/
(void)TclWinResetTimerResolution();
}
/* lint */
return (DWORD) 0;
}
/*
|