Public Member Functions | Protected Member Functions | Protected Attributes

RakNet::FunctionThreadDependentClass Class Reference

#include <FunctionThread.h>

Collaboration diagram for RakNet::FunctionThreadDependentClass:
Collaboration graph
[legend]

List of all members.

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.
FunctionThreadGetFunctionThread (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

FunctionThreadfunctionThread
bool functionThreadWasAllocated

Detailed Description

Definition at line 93 of file FunctionThread.h.


Constructor & Destructor Documentation

FunctionThreadDependentClass::FunctionThreadDependentClass (  ) 

Definition at line 98 of file FunctionThread.cpp.

FunctionThreadDependentClass::~FunctionThreadDependentClass (  )  [virtual]

Definition at line 103 of file FunctionThread.cpp.

Here is the call graph for this function:


Member Function Documentation

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.

Parameters:
[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.

Here is the call graph for this function:

FunctionThread * FunctionThreadDependentClass::GetFunctionThread ( void   )  const
Returns:
Returns the function thread held in the class

Definition at line 131 of file FunctionThread.cpp.

bool FunctionThreadDependentClass::GetFunctionThreadWasAllocated ( void   )  const
Returns:
Whether or not this class allocated the function thread by itself

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.

Parameters:
[in] functor Functor to push
[in] context Sent to FunctionThread::Push::context

Definition at line 139 of file FunctionThread.cpp.

Here is the call graph for this function:

void FunctionThreadDependentClass::StartFunctionThread ( void   )  [protected]

Allocates and starts the function thread, if necessary.

Definition at line 121 of file FunctionThread.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 116 of file FunctionThread.h.

Definition at line 117 of file FunctionThread.h.


The documentation for this class was generated from the following files: