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

Method start

include/exec/static_thread_pool.hpp:1621–1634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1619 {}
1620
1621 void start() & noexcept
1622 {
1623 std::unique_lock lock{parent_->start_mutex_};
1624 if (!parent_->has_started_)
1625 {
1626 parent_->tasks_.push_back(static_cast<task_base*>(this));
1627 parent_->tasks_size_ += 1;
1628 }
1629 else
1630 {
1631 lock.unlock();
1632 parent_->pool_.enqueue(static_cast<task_base*>(this));
1633 }
1634 }
1635 };
1636
1637 template <class Range>

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.45
enqueueMethod · 0.45

Tested by

no test coverage detected