ALBA
Classes | Macros | Typedefs
albaMultiThreader.h File Reference
#include "albaDefines.h"
#include "albaBase.h"
#include "albaIncludeWIN32.h"
Include dependency graph for albaMultiThreader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  albaMultiThreader
 
class  albaMultiThreader::mmuThreadInfo
 

Macros

#define ALBA_MAX_THREADS   16
 
#define mmuThreadInfoStruct   albaMultiThreader::mmuThreadInfo
 

Typedefs

typedef void(* mmuInternalThreadFunctionType) (void *)
 
typedef int mmuThreadProcessIDType
 

Macro Definition Documentation

◆ ALBA_MAX_THREADS

#define ALBA_MAX_THREADS   16

Definition at line 24 of file albaMultiThreader.h.

◆ mmuThreadInfoStruct

#define mmuThreadInfoStruct   albaMultiThreader::mmuThreadInfo

This is the structure that is passed to the thread that is created from the SingleMethodExecute, MultipleMethodExecute or the SpawnThread method.

It is passed in as a void *, and it is up to the method to cast correctly and extract the information. The ThreadID is a number between 0 and NumberOfThreads-1 that indicates the id of this thread. The NumberOfThreads is this->NumberOfThreads for threads created from SingleMethodExecute or MultipleMethodExecute, and it is 1 for threads created from SpawnThread. The UserData is the (void *)arg passed into the SetSingleMethod, SetMultipleMethod, or SpawnThread method.

Definition at line 94 of file albaMultiThreader.h.

Typedef Documentation

◆ mmuInternalThreadFunctionType

typedef void(* mmuInternalThreadFunctionType) (void *)

If CMAKE_USE_SPROC_INIT is defined, then sproc() will be used to create multiple threads on an SGI.

If CMAKE_USE_PTHREADS_INIT is defined, then pthread_create() will be used to create multiple threads (on a sun, for example)

If CMAKE_USE_PTHREADS_INIT is defined, then the multithreaded function is of type void *, and returns NULL. Otherwise the type is void which is correct for WIN32 and SPROC

Definition at line 63 of file albaMultiThreader.h.

◆ mmuThreadProcessIDType

Definition at line 64 of file albaMultiThreader.h.