Classes | Functions | Variables

ThreadPool.h File Reference

#include "RakMemoryOverride.h"
#include "DS_Queue.h"
#include "SimpleMutex.h"
#include "Export.h"
#include "RakThread.h"
#include "SignaledEvent.h"
#include "ThreadPool.h"
#include "RakSleep.h"
#include <unistd.h>
Include dependency graph for ThreadPool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ThreadDataInterface
struct  ThreadPool< InputType, OutputType >

Functions

 if (threadPool->perThreadDataFactory) perThreadData = threadPool->threadDataInterface->PerThreadFactory(threadPool->tdiContext)
threadPool numThreadsRunningMutex Lock ()
threadPool numThreadsRunningMutex Unlock ()
 while (1)

Variables

bool returnOutput
ThreadPool< ThreadInputType,
ThreadOutputType > * 
threadPool = (ThreadPool<ThreadInputType, ThreadOutputType>*) arguments
ThreadOutputType(* userCallback )(ThreadInputType, bool *, void *) = 0
ThreadInputType inputData
ThreadOutputType callbackOutput
void * perThreadData = 0
threadPool numThreadsRunning
else threadPool tdiContext
 return

Function Documentation

else if ( threadPool->  perThreadDataFactory  )  = threadPool->threadDataInterface->PerThreadFactory(threadPool->tdiContext)

Here is the caller graph for this function:

threadPool numThreadsRunningMutex Lock (  ) 
threadPool numThreadsRunningMutex Unlock (  ) 
while (  ) 

Definition at line 224 of file ThreadPool.h.

Here is the call graph for this function:


Variable Documentation

ThreadOutputType callbackOutput

Definition at line 207 of file ThreadPool.h.

ThreadInputType inputData

Definition at line 206 of file ThreadPool.h.

Definition at line 221 of file ThreadPool.h.

else perThreadData = 0

Definition at line 211 of file ThreadPool.h.

Definition at line 281 of file ThreadPool.h.

Definition at line 203 of file ThreadPool.h.

Definition at line 279 of file ThreadPool.h.

ThreadPool<ThreadInputType, ThreadOutputType>* threadPool = (ThreadPool<ThreadInputType, ThreadOutputType>*) arguments

Definition at line 204 of file ThreadPool.h.

Definition at line 205 of file ThreadPool.h.