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_thread Struct Reference

This thread's region state (#640). More...

#include <thread_pool.hpp>

Public Attributes

unsigned char state
 outside_region, inside_region (running a tid of a region), or pool_worker (a worker runs nothing but region tids).
bool vendor_capped
 An external library's thread team was set to one for this region; on a pool worker, for good.
void(* on_exit )() noexcept
 Run, then cleared, when a thread that is not a pool worker leaves its outermost region: the vendor cap's restore.

Detailed Description

This thread's region state (#640).

Thread-local, and in the shared mode exported with the pool: a task that one module starts may call into another module, which must see the state the first one set.

Member Data Documentation

◆ on_exit

void(* mtl::parallel::pool_local_noexc::detail::region_thread::on_exit) () noexcept
noexcept

Run, then cleared, when a thread that is not a pool worker leaves its outermost region: the vendor cap's restore.

One slot, MTL5-internal.

◆ state

unsigned char mtl::parallel::pool_local_noexc::detail::region_thread::state

outside_region, inside_region (running a tid of a region), or pool_worker (a worker runs nothing but region tids).

◆ vendor_capped

bool mtl::parallel::pool_local_noexc::detail::region_thread::vendor_capped

An external library's thread team was set to one for this region; on a pool worker, for good.

Lets every later call skip setting it again.


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