| 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> |
nothing calls this directly
no test coverage detected