SG++-Doxygen-Documentation
sgpp::combigrid::PtrGuard Class Reference

Helper class implementing a lock guard for std::shared_ptr<mutex> that does not lock a mutex if it is nullptr. More...

#include <PtrGuard.hpp>

Public Member Functions

 PtrGuard (std::shared_ptr< std::recursive_mutex > mutexPtr)
 
 ~PtrGuard ()
 

Detailed Description

Helper class implementing a lock guard for std::shared_ptr<mutex> that does not lock a mutex if it is nullptr.

Constructor & Destructor Documentation

sgpp::combigrid::PtrGuard::PtrGuard ( std::shared_ptr< std::recursive_mutex >  mutexPtr)
inlineexplicit
sgpp::combigrid::PtrGuard::~PtrGuard ( )
inline

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