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

Auxiliar structure with list for v2 vector data. Sub Structure. More...

#include <tpzdohrprecond.h>

Collaboration diagram for TPZDohrPrecondV2SubDataList< TVar, TSubStruct >:
[legend]

Public Member Functions

 TPZDohrPrecondV2SubDataList (TPZAutoPointer< TPZDohrAssembleList< TVar > > &assemble)
 
 ~TPZDohrPrecondV2SubDataList ()
 
void AddItem (TPZDohrPrecondV2SubData< TVar, TSubStruct > &data)
 Interface to add items in a thread safe way. More...
 
TPZDohrPrecondV2SubData< TVar, TSubStruct > PopItem ()
 Interface to pop an item in a thread safe way. More...
 

Static Public Member Functions

static void * ThreadWork (void *voidptr)
 The procedure which executes the lengthy process. More...
 

Public Attributes

pthread_mutex_t fAccessLock
 Mutex which will enable the access protection of the list. More...
 
std::list< TPZDohrPrecondV2SubData< TVar, TSubStruct > > fWork
 The list of structures which need to be computed. More...
 
TPZAutoPointer< TPZDohrAssembleList< TVar > > fAssemblyStructure
 The local contribution to the v2 vector. More...
 

Detailed Description

template<class TVar, class TSubStruct>
struct TPZDohrPrecondV2SubDataList< TVar, TSubStruct >

Auxiliar structure with list for v2 vector data. Sub Structure.

Definition at line 214 of file tpzdohrprecond.h.

Constructor & Destructor Documentation

◆ TPZDohrPrecondV2SubDataList()

template<class TVar, class TSubStruct>
TPZDohrPrecondV2SubDataList< TVar, TSubStruct >::TPZDohrPrecondV2SubDataList ( TPZAutoPointer< TPZDohrAssembleList< TVar > > &  assemble)
inline

Definition at line 215 of file tpzdohrprecond.h.

References PZ_PTHREAD_MUTEX_INIT.

◆ ~TPZDohrPrecondV2SubDataList()

template<class TVar, class TSubStruct>
TPZDohrPrecondV2SubDataList< TVar, TSubStruct >::~TPZDohrPrecondV2SubDataList ( )
inline

Definition at line 219 of file tpzdohrprecond.h.

References PZ_PTHREAD_MUTEX_DESTROY.

Member Function Documentation

◆ AddItem()

template<class TVar, class TSubStruct>
void TPZDohrPrecondV2SubDataList< TVar, TSubStruct >::AddItem ( TPZDohrPrecondV2SubData< TVar, TSubStruct > &  data)
inline

Interface to add items in a thread safe way.

Definition at line 231 of file tpzdohrprecond.h.

References PZ_PTHREAD_MUTEX_LOCK, and PZ_PTHREAD_MUTEX_UNLOCK.

◆ PopItem()

template<class TVar, class TSubStruct>
TPZDohrPrecondV2SubData<TVar, TSubStruct> TPZDohrPrecondV2SubDataList< TVar, TSubStruct >::PopItem ( )
inline

Interface to pop an item in a thread safe way.

Definition at line 238 of file tpzdohrprecond.h.

References PZ_PTHREAD_MUTEX_LOCK, and PZ_PTHREAD_MUTEX_UNLOCK.

Referenced by TPZDohrPrecondV2SubDataList< TVar, TSubStruct >::ThreadWork().

◆ ThreadWork()

template<class TVar , class TSubStruct >
void * TPZDohrPrecondV2SubDataList< TVar, TSubStruct >::ThreadWork ( void *  voidptr)
static

Member Data Documentation

◆ fAccessLock

template<class TVar, class TSubStruct>
pthread_mutex_t TPZDohrPrecondV2SubDataList< TVar, TSubStruct >::fAccessLock

Mutex which will enable the access protection of the list.

Definition at line 225 of file tpzdohrprecond.h.

◆ fAssemblyStructure

template<class TVar, class TSubStruct>
TPZAutoPointer<TPZDohrAssembleList<TVar> > TPZDohrPrecondV2SubDataList< TVar, TSubStruct >::fAssemblyStructure

The local contribution to the v2 vector.

Definition at line 251 of file tpzdohrprecond.h.

Referenced by TPZDohrPrecondV2SubDataList< TVar, TSubStruct >::ThreadWork().

◆ fWork

template<class TVar, class TSubStruct>
std::list<TPZDohrPrecondV2SubData<TVar, TSubStruct> > TPZDohrPrecondV2SubDataList< TVar, TSubStruct >::fWork

The list of structures which need to be computed.

Definition at line 228 of file tpzdohrprecond.h.


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