Describes a workload that returns results to be consumed and processed by the caller, that will be dispatched as a heap- allocated object. More...
#include <async-worker.h>
Inherits async::workload_t.
Inherited by Crunch, and CrunchNumbersRange.
Public Member Functions | |
worker_t () | |
Constructor. |
Describes a workload that returns results to be consumed and processed by the caller, that will be dispatched as a heap- allocated object.
Once dispatched, each async::worker_t increments the pending result counter. To retrieve completed workloads, call async::GetResults(). Implement member function "void Work()" with your workload, and implement "void Result()" with your code for receiving the returned results.
Definition at line 274 of file async-worker.h.
async::worker_t::worker_t | ( | ) | [inline] |
Constructor.
Definition at line 278 of file async-worker.h.