SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Parallel3< T, Arg1, Arg2, Arg3 > Class Template Reference

#include <Parallel3.h>

Inheritance diagram for Parallel3< T, Arg1, Arg2, Arg3 >:
ParallelBase

Public Member Functions

 Parallel3 (T *obj, void(T::*pmf)(int, Arg1, Arg2, Arg3), Arg1 a1, Arg2 a2, Arg3 a3)
 
virtual ~Parallel3 ()
 Destroy the Parallel3 object - the threads will remain alive. More...
 

Public Attributes

T * obj_
 
void(T::* pmf_ )(int, Arg1, Arg2, Arg3)
 
Arg1 a1
 
Arg2 a2
 
Arg3 a3
 

Protected Member Functions

virtual void run (int proc)
 The thread body More...
 
- Protected Member Functions inherited from ParallelBase
 ParallelBase ()
 
virtual ~ParallelBase ()
 

Additional Inherited Members

- Protected Attributes inherited from ParallelBase
Semaphorewait_
 

Constructor & Destructor Documentation

Parallel3 ( T *  obj,
void(T::*)(int, Arg1, Arg2, Arg3)  pmf,
Arg1  a1,
Arg2  a2,
Arg3  a3 
)

Create a Parallel3 object, using the specified member function instead of Parallel3. This will typically be used like:

Thread::Parallel3(Parallel3<MyClass>(this, &MyClass::mymemberfn), nthreads);

~Parallel3 ( )
virtual

Destroy the Parallel3 object - the threads will remain alive.

Member Function Documentation

void run ( int  proc)
protectedvirtual

The thread body

Implements ParallelBase.

Member Data Documentation

Arg1 a1
Arg2 a2
Arg3 a3
T* obj_
void(T::* pmf_)(int, Arg1, Arg2, Arg3)

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