MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / reset

Method reset

include/exec/linux/io_uring_context.hpp:428–438  ·  view source on GitHub ↗

@brief Resets the io context to its initial state.

Source from the content-addressed store, hash-verified

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 {

Callers 15

test_stop_when.cppFile · 0.45
complete_Method · 0.45
~threadMethod · 0.45
joinMethod · 0.45
operator()Method · 0.45
afterMethod · 0.45
afterMethod · 0.45

Calls 3

loadMethod · 0.45
storeMethod · 0.45
emplaceMethod · 0.45

Tested by 6

complete_Method · 0.36
~threadMethod · 0.36
joinMethod · 0.36
operator()Method · 0.36