#include <FunctionThread.h>
Public Member Functions | |
FunctionThreadDependentClass () | |
virtual | ~FunctionThreadDependentClass () |
virtual void | AssignFunctionThread (FunctionThread *ft) |
Assigns a function thread to process asynchronous calls. If you do not assign one then one will be created automatically. | |
FunctionThread * | GetFunctionThread (void) const |
bool | GetFunctionThreadWasAllocated (void) const |
virtual void | PushFunctor (Functor *functor, void *context=0) |
Allocates and starts the thread if needed, and pushes the functor. | |
Protected Member Functions | |
void | StartFunctionThread () |
Allocates and starts the function thread, if necessary. | |
Protected Attributes | |
FunctionThread * | functionThread |
bool | functionThreadWasAllocated |
Definition at line 93 of file FunctionThread.h.
FunctionThreadDependentClass::FunctionThreadDependentClass | ( | ) |
Definition at line 98 of file FunctionThread.cpp.
FunctionThreadDependentClass::~FunctionThreadDependentClass | ( | ) | [virtual] |
void FunctionThreadDependentClass::AssignFunctionThread | ( | FunctionThread * | ft | ) | [virtual] |
Assigns a function thread to process asynchronous calls. If you do not assign one then one will be created automatically.
[in] | ft | An instance of a running function thread class. This class can be shared and used for other functors as well. |
Definition at line 109 of file FunctionThread.cpp.
FunctionThread * FunctionThreadDependentClass::GetFunctionThread | ( | void | ) | const |
Definition at line 131 of file FunctionThread.cpp.
bool FunctionThreadDependentClass::GetFunctionThreadWasAllocated | ( | void | ) | const |
Definition at line 135 of file FunctionThread.cpp.
void FunctionThreadDependentClass::PushFunctor | ( | Functor * | functor, | |
void * | context = 0 | |||
) | [virtual] |
Allocates and starts the thread if needed, and pushes the functor.
[in] | functor | Functor to push |
[in] | context | Sent to FunctionThread::Push::context |
Definition at line 139 of file FunctionThread.cpp.
void FunctionThreadDependentClass::StartFunctionThread | ( | void | ) | [protected] |
Allocates and starts the function thread, if necessary.
Definition at line 121 of file FunctionThread.cpp.
Definition at line 116 of file FunctionThread.h.
bool RakNet::FunctionThreadDependentClass::functionThreadWasAllocated [protected] |
Definition at line 117 of file FunctionThread.h.