MCPcopy Create free account
hub / github.com/davisking/dlib / remove

Method remove

dlib/timer/timer.cpp:96–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94// ----------------------------------------------------------------------------------------
95
96 void timer_global_clock::
97 remove (
98 timer_base* r
99 )
100 {
101 if (r->in_global_clock)
102 {
103 tm.position_enumerator(r->next_time_to_run-1);
104 do
105 {
106 if (tm.element().value() == r)
107 {
108 uint64 t;
109 timer_base* rtemp;
110 tm.remove_current_element(t,rtemp);
111 r->in_global_clock = false;
112 break;
113 }
114 } while (tm.move_next());
115 }
116 }
117
118// ----------------------------------------------------------------------------------------
119

Callers

nothing calls this directly

Calls 2

valueMethod · 0.45
move_nextMethod · 0.45

Tested by

no test coverage detected