MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / timer_disable

Function timer_disable

src/pcem/timer.cpp:65–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64}
65void timer_disable(pc_timer_t *timer)
66{
67// pclog("timer->disable %p\n", timer);
68 if (!timer->enabled)
69 return;
70
71 if (!timer->next && !timer->prev && timer != timer_head)
72 fatal("timer_disable - !timer->next\n");
73
74 timer->enabled = 0;
75
76 if (timer->prev)
77 timer->prev->next = timer->next;
78 else
79 timer_head = timer->next;
80 if (timer->next)
81 timer->next->prev = timer->prev;
82 timer->prev = timer->next = NULL;
83}
84static void timer_remove_head()
85{
86 if (timer_head)

Callers 12

pit_set_using_timerFunction · 0.85
ym3812_timer_set_0Function · 0.85
ym3812_timer_set_1Function · 0.85
ymf262_timer_setFunction · 0.85
sb_dsp_resetFunction · 0.85
pollsbFunction · 0.85
sb_poll_iFunction · 0.85
timer_enableFunction · 0.85
nvr_speed_changedFunction · 0.85
nvr_rtcFunction · 0.85
writenvrFunction · 0.85

Calls 1

fatalFunction · 0.85

Tested by

no test coverage detected