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
Parallel2< T, Arg1, Arg2 > Class Template Reference

#include <Parallel2.h>

Inheritance diagram for Parallel2< T, Arg1, Arg2 >:
ParallelBase

Public Member Functions

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

Public Attributes

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

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

Parallel2 ( T *  obj,
void(T::*)(int, Arg1, Arg2)  pmf,
Arg1  a1,
Arg2  a2 
)

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

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

~Parallel2 ( )
virtual

Destroy the Parallel2 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
T* obj_
void(T::* pmf_)(int, Arg1, Arg2)

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