Re: coroutine condition_variable
Keith Bennett via Boost-users <[email protected]> Wed, 6 Dec 2023 16:30:02 -0600
| Newsgroups | gmane.comp.lib.boost.user |
|---|---|
| Message-ID | <CAObQs2ECb=PO6L+PZgKz302BjKY6KpEjSZgoBHgK_rimuurzWA@mail.gmail.com> |
On Wed, Dec 6, 2023 at 8:46 AM Richard Hodges via Boost-users < [email protected]> wrote: > The other way is to use an asio steady_timer. You would cancel the timer > in order to signal the condition. The waiter would see this as an > *operation_aborted* error, which would indicate, "you have been > signalled". > You can set the timer to expires_at(std::chrono::steady_clock::max()) to > indicate that the wait should be indefinite. > Ahh right, I forgot about infinite waits on a timer. That will solve it, thank you! -- Keith Bennett _______________________________________________ Boost-users mailing list [email protected] https://lists.boost.org/mailman/listinfo.cgi/boost-users