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

#include <Parallel1.h>

Inheritance diagram for Parallel1< T, Arg1 >:
ParallelBase

Public Member Functions

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

Public Attributes

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

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

Parallel1 ( T *  obj,
void(T::*)(int, Arg1)  pmf,
Arg1  a1 
)

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

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

~Parallel1 ( )
virtual

Destroy the Parallel1 object - the threads will remain alive.

Member Function Documentation

void run ( int  proc)
protectedvirtual

The thread body

Implements ParallelBase.

Member Data Documentation

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

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