|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
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. | |
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.
|
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.
| 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).
| 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.