-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to throttle using a critical section.
The first implementation of service restart throttling used a condition variable in a critical section to sleep for the required amount of time. The implementation was changed to use a waitable timer because Windows 2000 does not support SleepConditionVariableCS() or WakeConditionVariable(). Since we are now using LoadLibrary() and GetProcAddress() to use newer functions dynamically without having to build OS-specific binaries, we can now use a critical section where it's supported and fall back to a waitable timer when running on Windows 2000.
- Loading branch information
Iain Patterson
committed
Nov 12, 2013
1 parent
e42e690
commit 4550eb2
Showing
3 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters