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

Method submit

include/exec/linux/io_uring_context.hpp:1031–1042  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1029 }
1030
1031 void submit(::io_uring_sqe& __sqe) noexcept
1032 {
1033 [[maybe_unused]]
1034 int prev = __n_ops_.fetch_add(1, STDEXEC::__std::memory_order_relaxed);
1035 STDEXEC_ASSERT(prev == 0);
1036 __context& __context_ = this->__base_.context();
1037 __receiver_t& __receiver = this->__base_.receiver();
1038 __on_context_stop_.emplace(__context_.get_stop_token(), __stop_callback{this});
1039 __on_receiver_stop_.emplace(STDEXEC::get_stop_token(STDEXEC::get_env(__receiver)),
1040 __stop_callback{this});
1041 this->__base_.submit(__sqe);
1042 }
1043
1044 void complete(::io_uring_cqe const & __cqe) noexcept
1045 {

Callers

nothing calls this directly

Calls 6

get_envFunction · 0.50
contextMethod · 0.45
receiverMethod · 0.45
emplaceMethod · 0.45
get_stop_tokenMethod · 0.45
submitMethod · 0.45

Tested by

no test coverage detected