MCPcopy Create free account
hub / github.com/comaps/comaps / SetDeadline

Method SetDeadline

libs/base/cancellable.cpp:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void Cancellable::SetDeadline(std::chrono::steady_clock::time_point const & deadline)
23{
24 std::lock_guard lock(m_mutex);
25
26 m_deadline = deadline;
27 CheckDeadline();
28}
29
30bool Cancellable::IsCancelled() const
31{

Callers 2

UNIT_TESTFunction · 0.80
SetTimeoutMethod · 0.80

Calls

no outgoing calls

Tested by 1

UNIT_TESTFunction · 0.64