MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / add_internal_timer

Method add_internal_timer

source/timers/timer_queue.cpp:160–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void timer_queue::add_internal_timer(std::unique_lock<std::mutex>& lock, timer_ptr new_timer) {
161 assert(lock.owns_lock());
162 m_request_queue.emplace_back(std::move(new_timer), timer_request::add);
163 lock.unlock();
164
165 m_condition.notify_one();
166}
167
168void timer_queue::remove_internal_timer(timer_ptr existing_timer) {
169 {

Callers

nothing calls this directly

Calls 3

owns_lockMethod · 0.80
unlockMethod · 0.80
notify_oneMethod · 0.80

Tested by

no test coverage detected