MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Timer_Uninit

Function Timer_Uninit

src/timer.c:269–281  ·  view source on GitHub ↗

* Uninitialize the timer. */

Source from the content-addressed store, hash-verified

267 * Uninitialize the timer.
268 */
269void 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.

Callers 1

PrepareEndFunction · 0.85

Calls 2

Timer_InterruptSuspendFunction · 0.85
freeFunction · 0.85

Tested by

no test coverage detected