Sunshine master
Self-hosted game stream host for Moonlight.
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 >:
[legend]
Collaboration diagram for task_pool_util::_Impl< Function >:
[legend]

Public Member Functions

 _Impl (Function &&f)
 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

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)
inline

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: