MCPcopy Create free account
hub / github.com/3rdparty/libprocess / in

Method in

include/process/timeout.hpp:35–44  ·  view source on GitHub ↗

Constructs a Timeout instance from a Time that is the 'duration' from now.

Source from the content-addressed store, hash-verified

33 // Constructs a Timeout instance from a Time that is the 'duration'
34 // from now.
35 static Timeout in(const Duration& duration)
36 {
37 // We need now() + duration < Duration::max() to avoid overflow.
38 // Therefore, we check for now() < duration::max() - duration.
39 if (Clock::now().duration() < Duration::max() - duration) {
40 return Timeout(Clock::now() + duration);
41 }
42
43 return Timeout(Time::max());
44 }
45
46 Timeout& operator=(const Timeout& that)
47 {

Callers 3

generate_x509Function · 0.45
TEST_FFunction · 0.45
AddressClass · 0.45

Calls 2

TimeoutClass · 0.85
durationMethod · 0.80

Tested by 1

TEST_FFunction · 0.36