|
ALBA
|
#include <albaMultiThreader.h>


Classes | |
| class | mmuThreadInfo |
Public Types | |
| typedef void(* | albaThreadFunctionType) (mmuThreadInfoStruct *) |
Public Member Functions | |
| albaMultiThreader () | |
| ~albaMultiThreader () | |
| void | Print (std::ostream &os, const int tabs) |
| int | SpawnThread (albaThreadFunctionType, void *UserData) |
| void | TerminateThread (int thread_id) |
albaMultiThreader - A class for performing multithreaded execution.
albaMultiThreader is a class that provides support for multithreaded execution using sproc() on an SGI, or pthread_create on any platform supporting POSIX threads. This class can be used to execute a single method on multiple threads, or to specify a method per thread.
Definition at line 75 of file albaMultiThreader.h.
| typedef void(* albaMultiThreader::albaThreadFunctionType) (mmuThreadInfoStruct *) |
Definition at line 105 of file albaMultiThreader.h.
| albaMultiThreader::albaMultiThreader | ( | ) |
| albaMultiThreader::~albaMultiThreader | ( | ) |
| void albaMultiThreader::Print | ( | std::ostream & | os, |
| const int | tabs | ||
| ) |
| int albaMultiThreader::SpawnThread | ( | albaThreadFunctionType | , |
| void * | UserData | ||
| ) |
Create a new thread for the given function.
Return a thread id which is a number between 0 and ALBA_MAX_THREADS - 1. This id should be used to kill the thread at a later time.
| void albaMultiThreader::TerminateThread | ( | int | thread_id | ) |
Terminate the thread that was created with a SpawnThreadExecute()
|
protected |
An array of thread info containing a thread id (0, 1, 2, .
. ALBA_MAX_THREADS-1), the thread count, and a pointer to void so that user data can be passed to each thread
Definition at line 122 of file albaMultiThreader.h.
|
protected |
Storage of MutexFunctions and ints used to control spawned threads and the spawned thread ids.
Definition at line 127 of file albaMultiThreader.h.
|
protected |
Definition at line 128 of file albaMultiThreader.h.
|
protected |
Definition at line 129 of file albaMultiThreader.h.
|
protected |
Definition at line 130 of file albaMultiThreader.h.