SLikeNet  0.1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ThreadPool.h File Reference
#include "memoryoverride.h"
#include "DS_Queue.h"
#include "SimpleMutex.h"
#include "Export.h"
#include "thread.h"
#include "SignaledEvent.h"
#include "ThreadPool.h"
#include "sleep.h"
#include <unistd.h>

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 ()
 
 for (;;)
 

Variables

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

Function Documentation

threadPool numThreadsRunningMutex Lock ( )
threadPool numThreadsRunningMutex Unlock ( )

Variable Documentation

ThreadOutputType callbackOutput

Definition at line 223 of file ThreadPool.h.

ThreadInputType inputData

Definition at line 222 of file ThreadPool.h.

Referenced by DataStructures::Tree< TreeType >::Tree().

else perThreadData =0

Definition at line 227 of file ThreadPool.h.

bool returnOutput

Definition at line 220 of file ThreadPool.h.

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

Definition at line 217 of file ThreadPool.h.

userCallback =0

Definition at line 221 of file ThreadPool.h.

Referenced by for().