MorphoGraphX  2.0-1-227
Public Member Functions | List of all members
mgx::OMPGuard Class Reference

This is a class for guard objects using OpenMP It is adapted from the book "Pattern-Oriented Software Architecture". More...

#include <OMPGuard.hpp>

Public Member Functions

 OMPGuard (omp_lock_t &lock)
 Acquire the lock and store a pointer to it. More...
 
 ~OMPGuard ()
 Destruct guard object. More...
 

Detailed Description

This is a class for guard objects using OpenMP It is adapted from the book "Pattern-Oriented Software Architecture".

Taken from http://www.thinkingparallel.com - Michael Suess

Definition at line 30 of file OMPGuard.hpp.

Constructor & Destructor Documentation

◆ OMPGuard()

mgx::OMPGuard::OMPGuard ( omp_lock_t &  lock)

Acquire the lock and store a pointer to it.

◆ ~OMPGuard()

mgx::OMPGuard::~OMPGuard ( )

Destruct guard object.


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