MCPcopy Create free account
hub / github.com/PHZ76/RtspServer / AddTimer

Method AddTimer

src/net/EventLoop.cpp:133–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133TimerId EventLoop::AddTimer(TimerEvent timerEvent, uint32_t msec)
134{
135 std::lock_guard<std::mutex> locker(mutex_);
136 if (task_schedulers_.size() > 0) {
137 return task_schedulers_[0]->AddTimer(timerEvent, msec);
138 }
139 return 0;
140}
141
142void EventLoop::RemoveTimer(TimerId timerId)
143{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected