CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
edm::gen::RunCache Struct Reference

#include <ConcurrentHadronizerFilter.h>

Public Member Functions

std::unique_ptr
< GenRunInfoProduct
release () const noexcept
 
 ~RunCache ()
 

Public Attributes

std::atomic< GenRunInfoProduct * > product_ {nullptr}
 

Detailed Description

Definition at line 51 of file ConcurrentHadronizerFilter.h.

Constructor & Destructor Documentation

edm::gen::RunCache::~RunCache ( )
inline

Definition at line 53 of file ConcurrentHadronizerFilter.h.

References product_.

53 { delete product_.load(); }
std::atomic< GenRunInfoProduct * > product_

Member Function Documentation

std::unique_ptr<GenRunInfoProduct> edm::gen::RunCache::release ( ) const
inlinenoexcept

Definition at line 58 of file ConcurrentHadronizerFilter.h.

References product_.

58  {
59  auto retValue = product_.load();
60  product_.store(nullptr);
61  return std::unique_ptr<GenRunInfoProduct>(retValue);
62  }
std::atomic< GenRunInfoProduct * > product_

Member Data Documentation

std::atomic<GenRunInfoProduct*> edm::gen::RunCache::product_ {nullptr}
mutable

Definition at line 52 of file ConcurrentHadronizerFilter.h.

Referenced by release(), and ~RunCache().