threadman 0.1.0
Header-only C++23 managed threads, dynamic pools, futures, and executors
Loading...
Searching...
No Matches
Classes | Functions
threadman::detail Namespace Reference

Classes

struct  FutureSlot
 
struct  FutureSlot< void >
 
class  FutureState
 

Functions

void execute_on (IExecutor &exec, std::function< void()> task)
 Dispatch helper used by Future::then / SharedFuture::then.
 
template<class Exec >
requires (Executor<Exec> && !std::is_same_v<Exec, IExecutor>)
void execute_on (Exec &exec, std::function< void()> task)
 
std::uint64_t next_thread_id () noexcept
 
std::uint64_t current_native_id () noexcept
 
void apply_native_name (const std::string &name) noexcept
 
std::uint64_t next_pool_id () noexcept
 
std::uint64_t next_task_id () noexcept
 

Function Documentation

◆ apply_native_name()

void threadman::detail::apply_native_name ( const std::string &  name)
inlinenoexcept

◆ current_native_id()

std::uint64_t threadman::detail::current_native_id ( )
inlinenoexcept

◆ execute_on() [1/2]

template<class Exec >
requires (Executor<Exec> && !std::is_same_v<Exec, IExecutor>)
void threadman::detail::execute_on ( Exec &  exec,
std::function< void()>  task 
)
inline

◆ execute_on() [2/2]

void threadman::detail::execute_on ( IExecutor exec,
std::function< void()>  task 
)
inline

Dispatch helper used by Future::then / SharedFuture::then.

Defined here (after IExecutor) but declared in future.hpp.

◆ next_pool_id()

std::uint64_t threadman::detail::next_pool_id ( )
inlinenoexcept

◆ next_task_id()

std::uint64_t threadman::detail::next_task_id ( )
inlinenoexcept

◆ next_thread_id()

std::uint64_t threadman::detail::next_thread_id ( )
inlinenoexcept