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

Method throw_if_empty

source/timers/timer.cpp:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void timer::throw_if_empty(const char* error_message) const {
42 if (static_cast<bool>(m_state)) {
43 return;
44 }
45
46 throw errors::empty_timer(error_message);
47}
48
49std::chrono::milliseconds timer::get_due_time() const {
50 throw_if_empty(details::consts::k_timer_empty_get_due_time_err_msg);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected