Sunshine0.0.5917
Sunshine 0.0.5917
Self-hosted game stream host for Moonlight.
Loading...
Searching...
No Matches
task_pool_util::_Impl< Function > Class Template Reference

Concrete task wrapper that stores and invokes a callable. More...

#include <src/task_pool.h>

Inheritance diagram for task_pool_util::_Impl< Function >:
Collaboration diagram for task_pool_util::_Impl< Function >:

Public Member Functions

 _Impl (Function &&f)
 Explicitly store a concrete callable behind the task type-erasure interface.
void run () override
 Execute the queued task body.
Public Member Functions inherited from task_pool_util::_ImplBase
virtual ~_ImplBase ()=default
 Destroy a queued callable through its polymorphic base.

Detailed Description

template<class Function>
class task_pool_util::_Impl< Function >

Concrete task wrapper that stores and invokes a callable.

Constructor & Destructor Documentation

◆ _Impl()

template<class Function>
task_pool_util::_Impl< Function >::_Impl ( Function && f)
inlineexplicit

Explicitly store a concrete callable behind the task type-erasure interface.

Parameters
fCallable executed by the helper.

Member Function Documentation

◆ run()

template<class Function>
void task_pool_util::_Impl< Function >::run ( )
inlineoverridevirtual

Execute the queued task body.

Implements task_pool_util::_ImplBase.


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