MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::parallel::pool_local_noexc::detail::region_scope Class Reference

Marks the scope of a region tid on a thread that is not a pool worker, and restores the state after, so a region nested in another leaves the outer one's state set. More...

#include <thread_pool.hpp>

Public Member Functions

 region_scope () noexcept
 ~region_scope ()
 region_scope (const region_scope &)=delete
region_scope & operator= (const region_scope &)=delete

Detailed Description

Marks the scope of a region tid on a thread that is not a pool worker, and restores the state after, so a region nested in another leaves the outer one's state set.

Leaving the outermost region runs on_exit.

Constructor & Destructor Documentation

◆ region_scope() [1/2]

mtl::parallel::pool_local_noexc::detail::region_scope::region_scope ( )
inlinenoexcept

◆ ~region_scope()

mtl::parallel::pool_local_noexc::detail::region_scope::~region_scope ( )
inline

◆ region_scope() [2/2]

mtl::parallel::pool_local_noexc::detail::region_scope::region_scope ( const region_scope & )
delete

Member Function Documentation

◆ operator=()

region_scope & mtl::parallel::pool_local_noexc::detail::region_scope::operator= ( const region_scope & )
delete

The documentation for this class was generated from the following file: