* Uninitialize the timer. */
| 267 | * Uninitialize the timer. |
| 268 | */ |
| 269 | void Timer_Uninit(void) |
| 270 | { |
| 271 | #if !defined(TOS) && !defined(DOS) |
| 272 | Timer_InterruptSuspend(); |
| 273 | #endif /* !defined(TOS) && !defined(DOS) */ |
| 274 | #if defined(_WIN32) |
| 275 | CloseHandle(s_timerMainThread); |
| 276 | #endif /* _WIN32 */ |
| 277 | |
| 278 | free(s_timerNodes); s_timerNodes = NULL; |
| 279 | s_timerNodeCount = 0; |
| 280 | s_timerNodeSize = 0; |
| 281 | } |
| 282 | |
| 283 | /** |
| 284 | * Add a timer. |
no test coverage detected