async::static_worker_t Class Reference

Describes a workload that returns results to be consumed and processed by the caller, that will be dispatched as a local object. More...

#include <async-worker.h>

Inherits async::workload_t.

Inherited by CrunchNumbersRange.

List of all members.

Public Member Functions

 static_worker_t ()
 Constructor.

Detailed Description

Describes a workload that returns results to be consumed and processed by the caller, that will be dispatched as a local object.

Once dispatched, each async::static_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.

Warning:
Assumes local (stack) allocation, and does not attempt to self-delete.
If this behavior is not desired, see the async::worker_t class instead.
See also:
async::FireAndForget
async::worker_t
async::GetResults()
async::PendingResults()

Definition at line 307 of file async-worker.h.


Constructor & Destructor Documentation

async::static_worker_t::static_worker_t (  )  [inline]

Constructor.

Definition at line 311 of file async-worker.h.


The documentation for this class was generated from the following file:
Generated on Fri Jul 30 16:14:59 2010 for Async::Worker by  doxygen 1.6.3