MCPcopy Create free account
hub / github.com/boostorg/leaf / deactivate

Function deactivate

include/boost/leaf/context.hpp:423–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421 }
422
423 BOOST_LEAF_CONSTEXPR void deactivate() noexcept
424 {
425 using namespace detail;
426 BOOST_LEAF_ASSERT(is_active());
427#if !defined(BOOST_LEAF_NO_THREADS) && !defined(NDEBUG)
428 BOOST_LEAF_ASSERT(std::this_thread::get_id() == thread_id_);
429 thread_id_ = std::thread::id();
430#endif
431 is_active_ = false;
432 tuple_for_each<std::tuple_size<Tup>::value,Tup>::deactivate(tup_);
433#if BOOST_LEAF_CFG_CAPTURE
434 context_base::unlink();
435#endif
436 }
437
438 void unload(error_id id) noexcept(!BOOST_LEAF_CFG_CAPTURE)
439 {

Callers 1

deactivateMethod · 0.70

Calls 1

is_activeFunction · 0.85

Tested by

no test coverage detected