Changes between Initial Version and Version 1 of Ticket #514, comment 7
- Timestamp:
- Mar 20, 2014, 3:51:50 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #514, comment 7
initial v1 1 The code you have found has problems. It looks like it was implemented while the programmer was not really paying attention. The nested loop is not needed and the timer needs to initialized with InitITimer(). That said while the code is hardly optimal, it's not going to break anything.1 The code you have found has problems. It looks like it was implemented while the programmer was not really paying attention. The nested loop is not needed. That said while the code both non-optimal and confusing, it's not going to break anything. 2 2 3 3 !IdleIfNeeded() reduces the thread priority when an operation takes too long. This improves UI responsiveness. !SleepIfNeeded() exists for the same reason. Which one is best for a given operation is a judgement call.