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

Method __register_callback_

include/stdexec/stop_token.hpp:445–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443 namespace __stok
444 {
445 inline constexpr void __inplace_stop_callback_base::__register_callback_() noexcept
446 {
447 if (__source_ != nullptr)
448 {
449 if (!__source_->__try_add_callback_(this))
450 {
451 __source_ = nullptr;
452 // Callback not registered because stop_requested() was true.
453 // Execute inline here.
454 __execute();
455 }
456 }
457 }
458 } // namespace __stok
459
460 template <class _StopSource = inplace_stop_source>

Callers

nothing calls this directly

Calls 1

__try_add_callback_Method · 0.80

Tested by

no test coverage detected