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

Method thread

test/exec/asio/test_completion_token.cpp:472–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470 std::thread t_;
471 public:
472 thread()
473 : g_(ctx_.get_executor())
474 , t_(
475 [&]() noexcept
476 {
477 STDEXEC_TRY
478 {
479 ctx_.run();
480 }
481 STDEXEC_CATCH_ALL
482 {
483 FAIL("Exception thrown in background thread");
484 }
485 })
486 {}
487
488 ~thread() noexcept
489 {

Callers

nothing calls this directly

Calls 2

get_executorMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected