Commit 77a7ffa
committed
TIMER: Compiler warnings, Windows Sleep()
- Reduce/eliminate compiler warnings
- Variables that hide previous definitions (e.g., uptr)
- Assignments in conditional expressions (conditional expressions
should be... conditionals, i.e. "==".)
- Readability: use constants for conversions, make it easier to see the
time units.
- Use size_t for array indices.
- Windows: Prefer waitable timers over Sleep(). Sleep() is the fallback
if initializing a waitable timer fails (which it doesn't, but there's
no penalty for writing safe code.) A detailed discussion on Windows
timers can be found at http://www.windowstimestamp.com/description
Significantly reduces the occasional headache-inducing slow redraw
(flicker) on Windows (Imlac, primarily, but also afflicts PDP11 VT
sometimes.)1 parent fa970d6 commit 77a7ffa
3 files changed
Lines changed: 511 additions & 323 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
0 commit comments