2009-04-01
| Table of Contents: |
| Rate This Article: | Add This Article To: |
( Page 5 of 5 )
Parting Thoughts
WaitableTimer is a very useful synchronization object to have. Although not used nearly as often as EventHandle and Mutexe--or even Semaphore--when you need a waitable timer, you really need one. As I said, there are ways to simulate most of the waitable timer functionality using a regular timer object and an EventHandle, although doing so carries some very tight restrictions. However, WaitableTimer has one feature--the ability to "wake up" your computer--that doesn't seem to be possible any other way. Combined with its other features, that makes WaitableTimer an essential synchronization object. I wonder why it was never included as part of the .NET Framework.
Source Code Availability
A Visual Studio 2008 project, including full source for the WaitableTimer class and supporting classes, and some test programs is available for download from my Web site at http://www.mischel.com/pubs/waitabletimer.zip.
![]() |
|


