Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::ThreadPool::Task< F > Struct Template Reference

Concrete task implementation with type preservation. More...

Inheritance diagram for Aleph::ThreadPool::Task< F >:
[legend]
Collaboration diagram for Aleph::ThreadPool::Task< F >:
[legend]

Public Member Functions

 Task (F &&f)
 
void execute () override
 
- Public Member Functions inherited from Aleph::ThreadPool::TaskBase
virtual ~TaskBase ()=default
 

Public Attributes

F func
 

Detailed Description

template<typename F>
struct Aleph::ThreadPool::Task< F >

Concrete task implementation with type preservation.

Definition at line 222 of file thread_pool.H.

Constructor & Destructor Documentation

◆ Task()

template<typename F >
Aleph::ThreadPool::Task< F >::Task ( F &&  f)
inlineexplicit

Definition at line 226 of file thread_pool.H.

Member Function Documentation

◆ execute()

template<typename F >
void Aleph::ThreadPool::Task< F >::execute ( )
inlineoverridevirtual

Implements Aleph::ThreadPool::TaskBase.

Definition at line 228 of file thread_pool.H.

References Aleph::ThreadPool::Task< F >::func.

Member Data Documentation

◆ func

template<typename F >
F Aleph::ThreadPool::Task< F >::func

Definition at line 224 of file thread_pool.H.

Referenced by Aleph::ThreadPool::Task< F >::execute().


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