struct rgpot::ipi::detail::Deadline

Overview

Absolute end of one blocking exchange. never() has no end. More…

#include <IPIWire.hpp>
 
struct Deadline {
    // fields
 
    Clock::time_point end {};
    bool unbounded = false;
 
    // methods
 
    static Deadline after(double seconds, const char* who);
    static Deadline never();
    bool expired() const;
    int remainingMs() const;
};

Detailed Documentation

Absolute end of one blocking exchange. never() has no end.

Methods

static Deadline after(double seconds, const char* who)

Throws std::invalid_argument for a negative or non-finite budget.

int remainingMs() const

Milliseconds left for poll(); -1 when unbounded.