NeoPZ
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ThreadDohrmanAssemblyList< TVar > Struct Template Reference

Implements a list of Dohrman assembling and control thread and semaphores. More...

#include <pzdohrstructmatrix.h>

Public Member Functions

 ThreadDohrmanAssemblyList ()
 
 ThreadDohrmanAssemblyList (ThreadDohrmanAssemblyList< TVar > &cpy)
 
 ~ThreadDohrmanAssemblyList ()
 
void Append (TPZAutoPointer< ThreadDohrmanAssembly< TVar > > object)
 
TPZAutoPointer< ThreadDohrmanAssembly< TVar > > NextObject ()
 Returns an object and removes it from the list in a thread safe way. More...
 

Static Public Member Functions

static void * ThreadWork (void *voidptr)
 

Public Attributes

std::list< TPZAutoPointer< ThreadDohrmanAssembly< TVar > > > fList
 
pthread_mutex_t fAccessElement
 Mutexes (to choose which submesh is next) More...
 
pthread_mutex_t fTestThreads
 mutex to debug the assembly process More...
 

Detailed Description

template<class TVar>
struct ThreadDohrmanAssemblyList< TVar >

Implements a list of Dohrman assembling and control thread and semaphores.

Definition at line 204 of file pzdohrstructmatrix.h.

Constructor & Destructor Documentation

◆ ThreadDohrmanAssemblyList() [1/2]

template<class TVar >
ThreadDohrmanAssemblyList< TVar >::ThreadDohrmanAssemblyList ( )

Definition at line 1540 of file pzdohrstructmatrix.cpp.

◆ ThreadDohrmanAssemblyList() [2/2]

template<class TVar>
ThreadDohrmanAssemblyList< TVar >::ThreadDohrmanAssemblyList ( ThreadDohrmanAssemblyList< TVar > &  cpy)

Definition at line 1547 of file pzdohrstructmatrix.cpp.

◆ ~ThreadDohrmanAssemblyList()

template<class TVar >
ThreadDohrmanAssemblyList< TVar >::~ThreadDohrmanAssemblyList ( )

Definition at line 1554 of file pzdohrstructmatrix.cpp.

Member Function Documentation

◆ Append()

template<class TVar>
void ThreadDohrmanAssemblyList< TVar >::Append ( TPZAutoPointer< ThreadDohrmanAssembly< TVar > >  object)

Definition at line 1561 of file pzdohrstructmatrix.cpp.

Referenced by TPZDohrStructMatrix::Assemble().

◆ NextObject()

template<class TVar >
TPZAutoPointer< ThreadDohrmanAssembly< TVar > > ThreadDohrmanAssemblyList< TVar >::NextObject ( )

Returns an object and removes it from the list in a thread safe way.

Definition at line 1569 of file pzdohrstructmatrix.cpp.

◆ ThreadWork()

template<class TVar >
void * ThreadDohrmanAssemblyList< TVar >::ThreadWork ( void *  voidptr)
static

Definition at line 1582 of file pzdohrstructmatrix.cpp.

Referenced by TPZDohrStructMatrix::Assemble().

Member Data Documentation

◆ fAccessElement

template<class TVar>
pthread_mutex_t ThreadDohrmanAssemblyList< TVar >::fAccessElement

◆ fList

template<class TVar>
std::list<TPZAutoPointer<ThreadDohrmanAssembly<TVar> > > ThreadDohrmanAssemblyList< TVar >::fList

◆ fTestThreads

template<class TVar>
pthread_mutex_t ThreadDohrmanAssemblyList< TVar >::fTestThreads

The documentation for this struct was generated from the following files: