Holds (reference to) a SC::ThreadPool and SC::ThreadPool::Task to execute an SC::AsyncRequest in a background thread This object lifetime is the same as the SC::AsyncRequest it's associated with, like SC::AsyncFileRead or SC::AsyncFileWrite. More...
#include <Async.h>
Protected Member Functions | |
void | freeTask () |
bool | isFree () const |
Protected Attributes | |
ThreadPoolTask | task |
ThreadPool * | threadPool = nullptr |
AsyncRequest * | async = nullptr |
detail::AsyncCompletionVariant | completion |
SC::Result | returnCode = SC::Result(true) |
Friends | |
struct | AsyncEventLoop |
struct | AsyncRequest |
Holds (reference to) a SC::ThreadPool and SC::ThreadPool::Task to execute an SC::AsyncRequest in a background thread This object lifetime is the same as the SC::AsyncRequest it's associated with, like SC::AsyncFileRead or SC::AsyncFileWrite.
start
method.