|
Foundation
|
State-carrying lambda job for use with ThreadPool. More...
#include <ThreadPool.hpp>
Public Member Functions | |
| ThreadPoolLambdaJob (SharedPromise< ReturnType > promise, Lambda &&func) | |
| void | Execute (size_t) noexcept override |
Public Member Functions inherited from Foundation::Async::ThreadPoolJob | |
| virtual | ~ThreadPoolJob ()=default |
Private Attributes | |
| Lambda | mFunc |
| SharedPromise< ReturnType > | mPromise |
State-carrying lambda job for use with ThreadPool.
| Lambda | Type of the lambda function. |
| ReturnType | Return type of the lambda function. |
|
inline |
|
inlineoverridevirtualnoexcept |
Implements Foundation::Async::ThreadPoolJob.
|
private |
|
private |