| 48 | void Tick(); |
| 49 | |
| 50 | void SelfDelete() |
| 51 | { |
| 52 | // only delete ourselves once the thread has closed and we've called Finish() |
| 53 | if(finishTime && thread == 0) |
| 54 | delete this; |
| 55 | } |
| 56 | |
| 57 | // lock for accessing finishTime or immediateExit |
| 58 | Threading::CriticalSection lock; |