@brief Resets the io context to its initial state.
| 426 | |
| 427 | /// @brief Resets the io context to its initial state. |
| 428 | void reset() |
| 429 | { |
| 430 | if (__is_running_.load(STDEXEC::__std::memory_order_relaxed) || __n_total_submitted_ > 0) |
| 431 | { |
| 432 | STDEXEC_THROW(std::runtime_error("exec::io_uring_context::reset() called on a running " |
| 433 | "context")); |
| 434 | } |
| 435 | __n_submissions_in_flight_.store(0, STDEXEC::__std::memory_order_relaxed); |
| 436 | __stop_source_.reset(); |
| 437 | __stop_source_.emplace(); |
| 438 | } |
| 439 | |
| 440 | auto request_stop() noexcept -> std::error_code |
| 441 | { |