.. index:: pair: struct; rgpot::ipi::detail::Deadline .. _doxid-structrgpot_1_1ipi_1_1detail_1_1_deadline: struct rgpot::ipi::detail::Deadline =================================== .. toctree:: :hidden: Overview ~~~~~~~~ Absolute end of one blocking exchange. never() has no end. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct Deadline { // fields Clock::time_point :target:`end` {}; bool :target:`unbounded` = false; // methods static Deadline :ref:`after`(double seconds, const char* who); static Deadline :target:`never`(); bool :target:`expired`() const; int :ref:`remainingMs`() const; }; .. _details-structrgpot_1_1ipi_1_1detail_1_1_deadline: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Absolute end of one blocking exchange. never() has no end. Methods ------- .. index:: pair: function; after .. _doxid-structrgpot_1_1ipi_1_1detail_1_1_deadline_1a2e6f11fec9f9e164ec161f0faaaf691f: .. ref-code-block:: cpp :class: doxyrest-title-code-block static Deadline after(double seconds, const char* who) Throws std::invalid_argument for a negative or non-finite budget. .. index:: pair: function; remainingMs .. _doxid-structrgpot_1_1ipi_1_1detail_1_1_deadline_1a756eec190ed0794416a96b0fcffa2f2c: .. ref-code-block:: cpp :class: doxyrest-title-code-block int remainingMs() const Milliseconds left for poll(); -1 when unbounded.