A base class that will allow you to call YieldOnFunctor() from within a function, and continue with that function when the asynchronous processing has completed. More...
#include <InlineFunctor.h>

Public Member Functions | |
| InlineFunctorProcessor () | |
| ~InlineFunctorProcessor () | |
| void | StartThreads (int numThreads) |
| void | StopThreads (bool blockOnCurrentProcessing) |
| void | YieldOnFunctor (InlineFunctor *inlineFunctor) |
| bool | UpdateIFP (void) |
| void | Pop (int threadCallDepth) |
Protected Member Functions | |
| unsigned | GetCallDepth (void) const |
| Returns the number of functors that were passed to the system. | |
Protected Attributes | |
| RakNet::FunctionThread | functionThread |
| Used to create a thread that processes functors. | |
| DataStructures::List< bool > | completedThreads |
| Tracks which threads have been completed. | |
A base class that will allow you to call YieldOnFunctor() from within a function, and continue with that function when the asynchronous processing has completed.
Definition at line 22 of file InlineFunctor.h.
| InlineFunctorProcessor::InlineFunctorProcessor | ( | ) |
Definition at line 10 of file InlineFunctor.cpp.
| InlineFunctorProcessor::~InlineFunctorProcessor | ( | ) |
| unsigned InlineFunctorProcessor::GetCallDepth | ( | void | ) | const [protected] |
Returns the number of functors that were passed to the system.
Definition at line 48 of file InlineFunctor.cpp.


| void InlineFunctorProcessor::Pop | ( | int | threadCallDepth | ) |
| void InlineFunctorProcessor::StartThreads | ( | int | numThreads | ) |
Start the threads. Should call this first
| [in] | numThreads | How many worker threads to start |
Definition at line 19 of file InlineFunctor.cpp.

| void InlineFunctorProcessor::StopThreads | ( | bool | blockOnCurrentProcessing | ) |
Stop the threads
| [in] | blockOnCurrentProcessing | Wait for the current processing to finish? |
Definition at line 23 of file InlineFunctor.cpp.


| bool InlineFunctorProcessor::UpdateIFP | ( | void | ) |
| void InlineFunctorProcessor::YieldOnFunctor | ( | InlineFunctor * | inlineFunctor | ) |
Yield processing in the current function, continuing with the function implemented by CallYieldFunction When the functor completes, this function will return and the caller will continue processing
| [in] | inlineFunctor | A class that implements Functor::Process() to perform processing that can work asynchronously, such as loading a file or doing a database call |
Definition at line 27 of file InlineFunctor.cpp.

DataStructures::List<bool> InlineFunctorProcessor::completedThreads [protected] |
Tracks which threads have been completed.
Definition at line 60 of file InlineFunctor.h.
Used to create a thread that processes functors.
Definition at line 57 of file InlineFunctor.h.
1.7.1