LeviLamina
Loading...
Searching...
No Matches
ll::thread::ThreadPoolExecutor Class Referencefinal
+ Inheritance diagram for ll::thread::ThreadPoolExecutor:

Public Types

using Clock = std::chrono::steady_clock
 
using Duration = Clock::duration
 

Public Member Functions

LLAPI ThreadPoolExecutor (std::string name, size_t nThreads=1)
 
LLAPI void resize (size_t nThreads=1)
 
LLAPI void destroy ()
 
LLAPI void execute (std::function< void()>) const override
 
LLAPI std::shared_ptr< data::CancellableCallbackexecuteAfter (std::function< void()>, Duration) const override
 
std::string const & getName () const
 

Static Public Member Functions

static LLNDAPI ThreadPoolExecutor const & getDefault ()
 

Member Function Documentation

◆ execute()

LLAPI void ll::thread::ThreadPoolExecutor::execute ( std::function< void()> ) const
overridevirtual

Implements ll::coro::Executor.

◆ executeAfter()

LLAPI std::shared_ptr< data::CancellableCallback > ll::thread::ThreadPoolExecutor::executeAfter ( std::function< void()> ,
Duration  ) const
overridevirtual

Implements ll::coro::Executor.


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