#include <InlineFunctor.h>
Public Member Functions | |
void | StartThreads (int numThreads) |
void | StopThreads (bool blockOnCurrentProcessing) |
void | YieldOnFunctor (InlineFunctor *inlineFunctor) |
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. |
void InlineFunctorProcessor::StartThreads | ( | int | numThreads | ) |
Start the threads. Should call this first
[in] | numThreads | How many worker threads to start |
void InlineFunctorProcessor::StopThreads | ( | bool | blockOnCurrentProcessing | ) |
Stop the threads
[in] | blockOnCurrentProcessing | Wait for the current processing to finish? |
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 |